Question: C + + code I need help with this question with C + + code please FastFlight Airlines only flies to a few cities in

C++ code
I need help with this question with C++ code please
FastFlight Airlines only flies to a few cities in the United States. Those cities are Charlotte, North
Carolina, Orlando, Florida, Houston, Texas, Denver, Colorado and San Diego, California. Charlotte and
Orlando are in the eastern time zone. Houston is in the central time zone. Denver is in the mountain
time zone and San Diego is in the pacific time zone. There is a one-hour difference between each time
zone. For example, when it is 11:00 A.M. in Orlando it is 8:00 A.M. in San Diego. A diagram that shows
Fast Flights various flights and the flight times for each flight is shown below:
Write a program to determine the arrival time for each of their flights that accounts for changing time
zones.
Input is from a datafile where a number N represents the number of flights. N lines of data each
containing the departure city, departure time and destination city. A.M. and P.M. will always be
capitalized and contain periods. Consider midnight as 12:00 A.M. and noon as 12:00 P.M. Output to the
screen, the departure city and local departure time followed by the destination city and the local arrival
time for each flight listed in the input data, properly labeled. Times should be formatted such that single
digit hours are shown without a leading zero, but single digit minutes should be shown with a leading
zero. A graph data structure must be used. Let the user enter the file name from the keyboard. Refer to
the sample output below.
Sample File:
3
Houston 6:00 A.M. Orlando
Orlando 1:25 P.M. Charlotte
Charlotte 7:30 A.M. San Diego
Sample Run:
Enter file name: airtimes.txt
Flight 1: Houston 6:00 A.M. Orlando 9:01 A.M.
Flight 2: Orlando 1:25 P.M. Charlotte 2:54 P.M.
Flight 3: Charlotte 7:30 A.M. San Diego 8:53 A.M.
C + + code I need help with this question with C

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 Programming Questions!