Question
Rainfall Amounts (RainfallAmounts.java) Create a program named that prompts the user to enter rainfall amounts (in inches) for 12 months of a user-specified number of
Rainfall Amounts (RainfallAmounts.java) Create a program named that prompts the user to enter rainfall amounts (in inches) for 12 months of a user-specified number of years. The amounts must be stored into a single int-typed two-dimensional array Then, only after storing all values to the 2-D array, your program will use the data contained in the 2-D array to determine and print: The total rainfall for each year . The total rainfall across the entire time span The average monthly rainfall for each year . The average monthly rainfall for the entire time span . The month and year with the most rain The month and year with the least rain If the user enters a negative number or zero for the number of years, keep prompting the user to re- enter a positive value. If the user enters a value for the month. You do not need to account for ties with most/least rainfall amounts. Be sure to use comments to adequately document your source code. negative number for a month, keep prompting the user to re-enter a non-negative
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started