Explanation, declaration and definition of variable weightPerDogPerYear and calculation.