Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

input from the csv file containing the info as shown in the picture 1 ll IIII! II ======Earthquake Search Application=-=: ===================================== Date [yyyy-mm-dd][from] : 2016-11-1

image text in transcribedimage text in transcribed

input from the csv file containing the info as shown in the picture

1 ll IIII! II ======Earthquake Search Application=-=: ===================================== Date [yyyy-mm-dd][from] : 2016-11-1 Date [yyyy-mm-dd][to]: 2016-11-14 State:Alaska Magnitude [min]:5.0 2016-11-14T02:12:17.8307>>Magnitude: 5.4 2016-11-12T21:52:36.956Z>>Magnitude: 5.2 2016-11-11T08:13:46.1902> >Magnitude: 5.2 Results found: 3 Do you want to continue (yeso): yes =========================================== Date [yyyy-mm-dd][from] : 2016-11-11 Date [yyyy-mm-dd] (to]: 2016-11-14 State:CA Magnitude [min]:3.0 2016-11-14T00:22:38.730Z>>Magnitude: 3.23 2016-11-11T13:49:36.060Z>>Magnitude: 3.38 You are asked to design and develop a Java program to manage earthquake data. You are provided with an csv file, earthquake.csv, which contains last 30-day earthquake data around the world. Sample records from the excel file is given below. //datetime, depth, magnitude, address, state 2020-01-10T23:45:16.3602,10,2.3,"22 km SSE of Helena, Oklahoma" 2020-01-10T23:44:31.2407,6.3,0.72,"22km N of Ridgecrest, CA" 2020-01-10T23:44:00.8002,5.44,0.57,"23km N of Ridgecrest, CA" 2020-01-10T23:30:52.550Z, 16.19,2.37,"2km NE of Colton, CA" 2020-01-10T23:13:42.3952, 124.8,2.5,"79km E of Old Iliamna, Alaska" Your program shall do the followings: reads earthquake data from earthquake.xls file into a dynamic array list (ArrayList) prompts user to enter date interval, magnitude and state as the place for the earthquake as search criteria performs search on the dynamic array based on the search criteria stores matching earthquakes in another dynamic array list displays the search results to the console together with the total number of events found saves the search results in a text file and name the file using state information (e.g Earthquake_Alaska.txt) keeps running the application as long as user wants to continue handles exceptions o if user enters an invalid input, displays an error message O if there is no record found, displays "No records found message o if file is not found, displays "File not found message 1 ll IIII! II ======Earthquake Search Application=-=: ===================================== Date [yyyy-mm-dd][from] : 2016-11-1 Date [yyyy-mm-dd][to]: 2016-11-14 State:Alaska Magnitude [min]:5.0 2016-11-14T02:12:17.8307>>Magnitude: 5.4 2016-11-12T21:52:36.956Z>>Magnitude: 5.2 2016-11-11T08:13:46.1902> >Magnitude: 5.2 Results found: 3 Do you want to continue (yeso): yes =========================================== Date [yyyy-mm-dd][from] : 2016-11-11 Date [yyyy-mm-dd] (to]: 2016-11-14 State:CA Magnitude [min]:3.0 2016-11-14T00:22:38.730Z>>Magnitude: 3.23 2016-11-11T13:49:36.060Z>>Magnitude: 3.38 You are asked to design and develop a Java program to manage earthquake data. You are provided with an csv file, earthquake.csv, which contains last 30-day earthquake data around the world. Sample records from the excel file is given below. //datetime, depth, magnitude, address, state 2020-01-10T23:45:16.3602,10,2.3,"22 km SSE of Helena, Oklahoma" 2020-01-10T23:44:31.2407,6.3,0.72,"22km N of Ridgecrest, CA" 2020-01-10T23:44:00.8002,5.44,0.57,"23km N of Ridgecrest, CA" 2020-01-10T23:30:52.550Z, 16.19,2.37,"2km NE of Colton, CA" 2020-01-10T23:13:42.3952, 124.8,2.5,"79km E of Old Iliamna, Alaska" Your program shall do the followings: reads earthquake data from earthquake.xls file into a dynamic array list (ArrayList) prompts user to enter date interval, magnitude and state as the place for the earthquake as search criteria performs search on the dynamic array based on the search criteria stores matching earthquakes in another dynamic array list displays the search results to the console together with the total number of events found saves the search results in a text file and name the file using state information (e.g Earthquake_Alaska.txt) keeps running the application as long as user wants to continue handles exceptions o if user enters an invalid input, displays an error message O if there is no record found, displays "No records found message o if file is not found, displays "File not found message

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Neo4j Data Modeling

Authors: Steve Hoberman ,David Fauth

1st Edition

1634621913, 978-1634621915

More Books

Students also viewed these Databases questions

Question

Q. Who would you generally credit as being your mentors in life?

Answered: 1 week ago

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago

Question

Write down the Limitation of Beer - Lamberts law?

Answered: 1 week ago