Question: IN JAVA: Write a program that calculates the total rainfall, the highest monthly rainfall, and the lowest monthly rainfall of Georgia for the last year.

IN JAVA:

Write a program that calculates the total rainfall, the highest monthly rainfall, and the lowest monthly rainfall of Georgia for the last year. The loop will iterate 12 times, once for each month. During each iteration, ask the user to enter the inches of rainfall for that month. After all iterations, the program displays the total inches of rainfall, the highest monthly rainfall, and the lowest monthly rainfall of Georgia for the last year.

Input validation: Do not accept negative numbers for the monthly rainfall.

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 Databases Questions!