Question: I need help with creating a C++ program with flight schedules using any data structure. This program requires two input files the first is: Airports

I need help with creating a C++ program with flight schedules using any data structure.

This program requires two input files the first is:

Airports which have an ID number and name of airport.

Example:

ID Airport

1 LAX

2 LBA

3 JFK

The second input file contains information regarding flights traveling between airports in addition to times. Via the format below

Example: Depart ID Arrival ID Time depart Time Arrival

1 2 0830 1000

1 4 1000 1200

The program must have the following functionality:

Print complete flight schedule for all airports Print complete flight schedule for a specific airport For a airport name, look up airport number For a airport number, look up the airport name Determine if there is a direct rout from airport A to airport B Determine if airport B can be reached from airport A For any two airports determine the shortests amount of time it will take to go from A to B without layovers(format: HH:MM) If no route exists, alert the user For any two airports determine the shortests overall travel time including layovers at airport (format: HH:MM) If no route exists, alert the user For any two airports determine the shortest overall travel time including layovers at airport when requesting to leave at a certain time (format: HH:MM) A passenger is able to say they want to leave at 09:30 and your program will take this into account when choosing paths

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!