Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In java please, Rainfall Analysis For this project, you will write a program that analyzes the amount of rain observed over the course of several
In java please,
Rainfall Analysis For this project, you will write a program that analyzes the amount of rain observed over the course of several days. Your program should prompt the user to specify the number of days for which observation data will be entered (between 1 and 10 inclusive). If the user enters an invalid number of days, the program should display an error message and keep asking the user for a valid number of days until the user enters an appropriate number. The program should then prompt the user for the observed amount of rain that fell on each of the specified number of days menu of Once rainfall data has been entered, the program should then present the user with a options that will display information about the observation period. The menu will provide the following options to display (1) the total rainfall, (2) the average rainfall, (3) the day and the amount of the greatest rainfall, (4) the day and the amount of the least rainfall, (5) the number of days a flood warning was issued due to six or more inches of rain in a single day, or eight or more inches of rain over two consecutive days, and (6) quit. The menu should continue to be displayed until the user selects the quit option. If the user enters an invalid option, the program should display an "Invalid response, please try again!" message and redisplay the menu. Note: If two days have the same greatest (or least) rainfall, report the first/earliest day that had that value You should develop your project using Eclipse. Create a new project in Eclipse called RainfallAnalysis
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