Question: Climate data is collected on each city and state. Design a program that lets the user enter the total rainfall for each of 12 months
Climate data is collected on each city and state. Design a program that lets the user enter the total rainfall for each of 12 months into a list. The program should calculate and display the total rainfall for the year, the average monthly rainfall, and the months(this is giving me trouble) with the highest and lowest rainfall amounts. The total and average should be rounded to 2 decimal places. Use a global constant list for the month names that can be processed with a "for" loop. Create functions and use arguments/parameters as shown in the hierarchy chart/data flow diagram below. Create each of the functions and create the main program which calls the functions.

What the display should look like.

main() rainList rainList rainList[] rainList1] total avg highest lowest getRainfall(0 calcTotal0) calcAvg() findHighest0 findHighest(0 findLowest0
Step by Step Solution
There are 3 Steps involved in it
To create this program you can break it down into functions as shown in the hierarchy chart Below is ... View full answer
Get step-by-step solutions from verified subject matter experts
