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. Use a FOR loop that 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 should display the total inches of rainfall, the highest monthly rainfall, and the lowest monthly rainfall of Georgia for the last year. Include an Input Validation that does not accept negative numbers for the monthly rainfall input.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
