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
Get step-by-step solutions from verified subject matter experts
