Answered step by step
Verified Expert Solution
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 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 IO:
Airports v 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 : Cover page with your name, class, project, and due date
Page to :
Section Project specification: Your ADT description. Description of data
structures used and a description of how you implement the ADT
Section 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 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 projectzip.
NO package and NO folder inside the zip file.
unzip project
javac AirportApp.java
java AirportApp
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started