Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need help with flowgorithm chart. In Java, design a program that lets the user

ID: 3860002 • Letter: I

Question

I need help with flowgorithm chart.

In Java, design a program that lets the user enter the total rainfall for each of 12 months into an array. The program should then calculate and display the total rainfall for the year, the average monthly rainfall, and the months with the highest and lowest amounts.

Expected Output

Please enter the rainfall for JANUARY
1
Please enter the rainfall for FEBRUARY
3
Please enter the rainfall for MARCH
6
Please enter the rainfall for APRIL
8.5
Please enter the rainfall for MAY
5.5
Please enter the rainfall for JUNE
4
Please enter the rainfall for JULY
6
Please enter the rainfall for AUGUST
3
Please enter the rainfall for SEPTEMBER
4
Please enter the rainfall for OCTOBER
6.5
Please enter the rainfall for NOVEMBER
1
Please enter the rainfall for DECEMBER
0.5
The total annual rainfall was 49 inches
The average annual rainfall was 4.08333 inches
The month with the lowest rainfall was DECEMBER
The month with the highest rainfall was APRIL

Explanation / Answer

Below is the program that you wanted , it has been programmed to accept 12 month rain fall value as input. import java.util.*; public class RainFall { public static void main(String args[]){ String[] months = new String[] { "Jaunary", "February", "March","April", "May","June", "July","August","September","October","November","December" }; Scanner in = new Scanner(System.in); double[] rainfall = new double[12]; for(int i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote