Input files (flights.txt and airports.txt) will be provided separately. When you run your program, you need to pass the source airport and destination airport as a command line argument.

computer science

Description

Input File: Input files (flights.txt and airports.txt) will be provided separately. When you run your program, you need to pass the source airport and destination airport as a command line argument. For example, lets take two airports, Baton Rouge (BTR) and Providence (PVD). The three letter code of the airports will be passed as command line argument as.


Output: The output should be an entire itinerary that takes you from source airport to destination airport in the earliest possible time. Every airport in the final itinerary should be followed by a ”-”. In the end, you need to mention the arrival time followed by a newline. For example, the output for the above mentioned input i.e. source=BTR and destination=PVD is, 


Submission: This is not a group project. Submit the file Route.cpp or Route.java to gradescope. It will run a custom test case and return the result of the test. If everything goes well, you can directly see how well your program performed. Additionally, if it fails, then you can submit it as many times as you want before the deadline. 


Related Questions in computer science category