Write a program that averages the rain fall for three months.

Write a program that averages the rain fall for three months.
Declare a variable for the name of each month and the rain fall for each month.
Ask the user for the name of the month.
Using the month’s name, ask the user for the amount of rain fall the month.
Do this for the 3 months.
Compute the sum of the 3 months and the average.
Print out a summary at the end.
The output should look like below. Use \t to line up #s:
Rainfall for April: 5.0
Rainfall for May : 6.0
Rainfall for June: 7.0
Average rainfall: 6.0

Complete Answer:

Get Instant Help in Homework Asap
Get Instant Help in Homework Asap
Calculate your paper price
Pages (550 words)
Approximate price: -
Open chat
1
Hello 👋
Thank you for choosing our assignment help service!
How can I help you?