In the previous chapter, the water elevation data for Lake Powell were evaluated
ID: 3790809 • Letter: I
Question
In the previous chapter, the water elevation data for Lake Powell were evaluated using the find function. Repeat the calculations, using a nested loop structure. (a) Determine the average elevation of the water level for each year and for the eight-year period over which the data were collected. (b) Determine how many months each year exceed the overall average for the eight-year period. (c) Create a report that lists the month (number) and the year for each of the months that exceed the overall average. For example, June is month 6. (d) Determine the average elevation of the water for each month for the eight-year period.
Here is the Data:
Table 8.9 Water-Level Data for Lake Powell, Measured in Feet above Sea Level 2000 2001 2002 2003 2004 2005 2006 2007 January 3680.12 3668.05 3654.25 3617.61 3594.38 3563.41 3596.26 3601.41 February 3678.48 3665.02 3651.01 3613 3589.11 3560.35 3591.94 3598.63 March 3677.23 3663.35 3648.63 3608.95 3584.49 3557.42 3589.22 3597.85 April 3676.44 3662.56 3646.79 3605.92 3583.02 3557.52 3589.94 3599.75 May 3676.76 3665.27 3644.88 3606.11 3584.7 3571.60 3598.27 3604.68 June 3682.19 3672.19 3642.98 3615.39 3587.01 3598.06 3609.36 3610.94 July 3682.86 3671.37 3637.53 3613.64 3583.07 3607.73 3608.79 3609.47 August 3681.12 3667.81 3630.83 3607.32 3575.85 3604.96 3604.93 3605.56 September 3678.7 3665.45 3627.1 3604.11 3571.07 3602.20 3602.08 3602.27 October 3676.96 3663.47 3625.59 3602.92 3570.7 3602.31 3606.12 3601.27 November 3674.93 3661.25 3623.98 3601.24 3569.69 3602.65 3607.46 3599.71 December 3671.59 3658.07 3621.65 3598.82 3565.73 3600.14 3604.96 3596.79
It may need to be rearranged a bit, the paste window compresses it.
Please solve this problem using only nested loop structure!!!
Thanks
Explanation / Answer
for(initialize; condition; increment) { for (initialize; condition; increment) { statement(s); } statement(s); } while(condition) { while(condition) { statement(s); } statement(s); } do { statement(s); do { statement(s); }while( condition ); }while( condition );
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.