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 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 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 SolCal
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
i
Q
Structure:
Data Structure: Use arrays to store city names and a D array for daily
rainfall data over days.
Random Rainfall Assignment: Assign random rain values to inches
to each city for each day.
Evacuation Prediction: Calculate total weekly rainfall to determine
evacuation status:
Mandatory Evac: inches
Voluntary Evac: Between and inches
Watch Alert: Between and inches
No Alert: 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 cities. Please note, the program should show the output for all the cities. You also need to execute the program at least times and show both the outputs.
City: Los Angeles
Rainfall Inches: Mon: Tues: Wed: Thu: Fri: Sat: Sun:
Total weekly rainfall: inches
Evocation Status: Watch Alert
City: Long Beach
Rainfall Inches: Mon: Tues: Wed: Thu: Fri: Sat: Sun:
Total weekly rainfall: inches
Evocation Status: Mandatory Evacuation
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
