Question: Must Be Done In Java Use at least one array Strings. Use at least one 2 - dimensional array. Use sorting to arrange data. You

Must Be Done In Java
Use at least one array Strings.
Use at least one 2-dimensional array.
Use sorting to arrange data. You can use any sorting method.
Use methods to do separate and repetitive work. The main method
should not have more than 20 lines of code.
Implement the project correctly using JAVA.
Use of meaningful identifies, consistent indentation, explanatory
comments in code, and properly formatted output.
Project:
This project simulates rainfall and evacuation predictions for 10 Sol-Cal
cities. Cities: Los Angeles, Long Beach, San Pedro, Lynwood, Lomita,
Compton, Hawthorne, Lawndale, El Segundo, and Carson. The objective is to
use data structures like arrays, implement random number generation, and
use conditional logic for evacuation status determination.
Screen Shot 2024-...
(i)
Q
o+
Structure:
Data Structure: Use arrays to store city names and a 2D array for daily
rainfall data over 7 days.
Random Rainfall Assignment: Assign random rain values (0.0 to 6.0 inches)
to each city for each day.
Evacuation Prediction: Calculate total weekly rainfall to determine
evacuation status:
Mandatory Evac: >20 inches
Voluntary Evac: Between 12 and 20 inches
Watch Alert: Between 6 and 12 inches
No Alert: 6 inches
User Interaction: Allow users to select a city and display its rainfall data and
evacuation status. Also, allow user to display all of the cities data together.
Efficiency and Structure: Implant methods for repetitive tasks and keep the
main method concise.
Sample Output:
The following shows the sample output for 2 cities. Please note, the program should show the output for all the 10 cities. You also need to execute the program at least 2 times and show both the outputs.
City: Los Angeles
Rainfall (Inches): Mon: 1.2, Tues: 0.8, Wed: 2.1, Thu: 3.4, Fri: 1.9, Sat: 0.6, Sun:0.5
Total weekly rainfall: 10.5 inches
Evocation Status: Watch Alert
City: Long Beach
Rainfall (Inches): Mon: 2.5, Tues: 3.1, Wed: 1.1, Thu: 5.2, Fri: 4.3, Sat: 3.1, Sun:1.5
Total weekly rainfall: 20.8 inches
Evocation Status: Mandatory Evacuation
 Must Be Done In Java Use at least one array Strings.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!