Question: Exercise: 0 2 - Rainfall Statistics Design a program that lets the user enter the total rainfall for each of 1 2 months into a

Exercise: 02- Rainfall Statistics
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, the months with the highest and lowest amounts. The total rainfall for the year was 33.0
The average rainfall for the year was 2.8
The month with the highest rainfall was December
The month with the lowest rainfall was January
Would you like a detailed summary? (\(\mathrm{Y}/\mathrm{N}\)):
Rainfall Statistics Detailed Summary
The rainfall for January was 0.0
The rainfall for February was 0.5
The rainfall for March was 1.0
The rainfall for April was 1.5
The rainfall for May was 2.0
The rainfall for June was 2.5
The rainfall for July was 3.0
The rainfall for August was 3.5
The rainfall for September was 4.0
The rainfall for October was 4.5
The rainfall for November was 5.0
The rainfall for December was 5.5
The total rainfall for the year was 33.0
The average rainfall for the year was 2.8
The month with the highest rainfall was December
The month with the lowest rainfall was January
Have a good day!
Program stopped.
Exercise: 0 2 - Rainfall Statistics Design a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!