Explanation, declaration and definition  of calculation within variable costPerDogPerYear.