[Solved] SOLVED:Project 3-3: Earthquake Data Application

$25

File Name: SOLVED:Project_3-3:_Earthquake_Data_Application.zip
File Size: 442.74 KB

SKU: [Solved] SOLVED:Project 3-3: Earthquake Data Application Category: Tag:
5/5 - (1 vote)

In the last part of this project, you will use the BST ADT from part 2 towards an application that utilizes earthquake data. US Geological Survey (USGL) publishes (via Tweets) the latest earthquakes. We will use a small subset of this dataset and store this on a binary search tree. The data le will contain a record for each quake, consisting of (1) quake magnitude, (2) quake location, and (3) quake date and time. Your search tree will use the magnitude (oating value) as the key, and stored in the search key eld. You will store the 3 pieces of information into the data component(use the generic parameter) of the tree node(you may create a class for this). For convenience, you will use the rst 3 of these elds to label your nodes(visible on mouseover, but you must use the setLabel() method for that). You will perform the following tasks:1. Read all of the quake data into the search tree (in the order in which the records are in the le(Done in part 2)). Output: Print to the console (the number of tree nodes via traversal), the full record of the largest quake encountered in the data.2. Similar to project 1, you will perform the following operations; use standard input(use the Scanner class and its methods to set up an innite loop) with the following commands:(a) largest : Output: traverse the tree and highlight the quake with the largest magnitude. (b) reset : Output: reset all tree nodes with a default color. (c) range min max : Output: Highlight the nodes with earthquake magnitude between min and max values in a unique color and highlight the remaining visited nodes in a dierent color. Note that not all nodes need to be visited, necessitating an ecient traversal. (d) nd location val : Output: this command will take the location (string) and highlight all the nodes that contain this. For example, providing the search string Alaska will highlight all earthquakes that occurred in Alaska(match the input string to the location eld of the quake record(ignore upper/lower case dierences). (e) nd month year : Output: this command will take the month (string) and year (string) and highlight all the nodes that contain these two strings in their date eld. For example, nd Mar 2014 will highlight all earthquakes that occurred in March of 2014 (f) quit : Output: terminates the program.Evaluation.By interactive demo.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] SOLVED:Project 3-3: Earthquake Data Application
$25