Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2020-01-10T23:45:16.360Z,10,2.3,22km SSE of Helena, Oklahoma 2020-01-10T23:44:31.240z,6.3,0.72,22km N of Ridgecrest, CA 2020-01-10T23:44:00.800Z,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.395Z,124.8,2.5,79km E of Old Iliamna,

image text in transcribed

2020-01-10T23:45:16.360Z,10,2.3,"22km SSE of Helena, Oklahoma" 2020-01-10T23:44:31.240z,6.3,0.72,"22km N of Ridgecrest, CA" 2020-01-10T23:44:00.800Z,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.395Z,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 if user enters an invalid input, displays an error message if there is no record found, displays "No records found" message 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

Step: 3

blur-text-image

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions