Section 12.4 Earthquake Tracker Assignment
Subsection 12.4.1 Goals
The purpose of this assignment is to learn to
- Access and manipulate remote data through BRIDGES.
- Manipulate a GraphAdjList object.
- Display a location on a map.
- Optionally, perform basic graph operation (connected component)
Please download: Earthquake.zip 1
Subsection 12.4.2 Programming Tasks
Grab recent earthquake data and build a graph representing the locations of the 100 strongest earthquakes.
- Open your scaffolded code.
- Plug in your credentials.
- Get the most recent 10,000 earthquakes.
- Only retain the 100 highest magnitude earthquakes.
Subsection 12.4.3 Place Earthquakes on the map
- Create a graph where each earthquake is a vertex.
- Add no edges for now.
- Pin earthquakes at their longitude and latitude.
- Tweak the appearance of vertices if you want (e.g., use a different symbols for earthquake in Hawaii or Alaska).
- Compile, run, and visualize.
Subsection 12.4.4 Build a graph based on distances
For each pair of earthquakes:
- Compute the distance using calcDistance.
- If the earthquakes are closer than 500km, add an edge between them.
Compile, run, and visualize.
Subsection 12.4.5 Show just the graph
- Deactivate the map overlay (already done in the scaffolding).
- Unpin the vertices by setting their location to infinity.
- Compile, run, and visualize.
You have attempted of activities on this page.
bridgesuncc.github.io/assignments/data//4-GraphEQ/java.zip