Page 1042 - AP Computer Science A, 7th edition
P. 1042

35. (E) Since there are 365 valid days in a year, the divisor in calculating the average must be 365. It may appear that segments II and III are incorrect because they include rainfall for invalid days in total. Since these values are initialized to 0.0, however, including them in the total won’t affect the final result.


































































































   1040   1041   1042   1043   1044