Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: Implement the graph ADT for a practical application. Input: Two files - one for the airport information and the other for the connection data.

Description:
Implement the graph ADT for a practical application.
Input: Two files - one for the airport information and the other for the connection data.
airports.csv - IATA 3-letter airport code, airport information
distances.csv - from IATA, to IATA,distance
(International Air Transport Association)
Output: A menu driven system which has the following options:
Read the original data files and store the data to appropriate ADT.
Let the user of this program enter an airport code and your program should print out the
airport information.
Find the connection between two airports. Get two airport codes and find the shortest
distance between two airports.
Exit.
Create a Java Digraph class to store the airport and distance information. Use Dijkstra's
algorithm discussed in class for finding the shortest distances between airports. In your project
report, you will need to discuss the ADTs and data structures used for the graph and Dijkstra's
algorithm. You will also need to analyze the time complexity of your program with your selected
data structures.
Required I/O:
Airports v0.24 by F. Last
Command? H
Q Query the airport information by entering the airport code.
D Find the minimum distance between two airports.
H Display this message.
E Exit.
Command? Q
Airport code? LAX
Los Angeles CA - Los Angeles International
Command? D
Airport codes from to? LAX IAH
The minimum distance between LAX and IAH:
Los Angeles CA - Los Angeles International (LAX)
...in between airports
Houston TX - George Bush Intercontinental Airport (IAH)
Command? E
Possible responses:
Invalid command
Airport code unknown
Airports not connectedProject report:
Page 1: Cover page with your name, class, project, and due date
Page 2 to 3 :
Section 1(Project specification): Your ADT description. Description of data
structures used and a description of how you implement the ADT
Section 2(Testing methodology): Description of how you test your ADT, refer to
your testing output. Explain why your test cases are rigorous and complete.
Demonstrate that you test each method.
Section 3(Lessons learned): Any other information you wish to include.
Turn in:
Project report submitted via Canvas.
Submission include ONLY Java source files: AirportApp.java and all the supporting ADTs.
NO airports.csv and distances.csv.
There will be the following Java source files:
Stack ADT, PriorityQueue ADT (use minheap), Dictionary ADT (use hashing),
Graph ADT, AirportApp.java
Compress these files into a zip file and submit it on Canvas with the name project4.zip.
NO package and NO folder inside the zip file.
unzip project4
javac AirportApp.java
java AirportApp
image text in transcribed

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

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Discuss the history of human resource management (HRM).

Answered: 1 week ago