Question: Assignment # 1 Advanced C + + 2 0 0 points - due date Nov 1 1 1 : 5 9 pm ( nothing accepted

Assignment #1 Advanced C++200 points- due date Nov 111:59pm (nothing accepted late)
The program, airline_project.cpp, has been started for you and included with this assignment. The assignment will also use the data file, flightsC.txt, which is also included with this assignment.The entire structure of the program has been created for you. The program contains stubs (a function that runs, but does not do anything except run at the proper time).Therefore, you must add the proper code to each function to perform the required actions listed below.
Flight information that must be defined in your main function is below. You must also add a count to keep track of how many flights were read in. The data MUST be defined in the main function and passed to the functions that need them. (Data defined as global will NOT be accepted and you will receive a zero for the assignment).
Flight number
Flight origination city
Flight destination city
Flight date
Flight time
Number of coach seats on flight
Cost of each coach seat
Number of first class seats on flight
Additional cost of first class seats
You must complete the functions as follows:
start_program- This function will open the data file flightsC.txt and read flight information into a set of parallel arrays. ALL WORK required in other sections of the code is then performed on the parallel arrays. You will ONLY refer to the flightsC.txt data file in this start_program function. The data file is stored with this assignment and must be copied into the folder containing the .cpp file. Please note that a copy of the data stored in the data file is included at the end of this assignment document for your info.
print_all_info This function will print all information that was read into the flight arrays
print_specific_flight_info- This function will print all information on a specific flight. You will have to prompt the user for the flight number and search the arrays for the flight
print_destination This function will print all information on all flights going to a specific city. You will have to prompt the user for the destination city and search the arrays for the destination city
print_total_seats For each flight, this function will print the flight number and the destination of the flight along with the total number of seats on the flight (coach + first class seats)
print_seat_value For each flight, this function will print all information on the flight and calculate the value of the coach seats (number of coach seats multiplied by the cost of the coach seats) and the value of all the first class seats on the flight.(A cost of one first class seat is the cost of the coach seat plus the additional cost that was read in)
What to submit:
Create a word document with your name and date first.
Then copy your source code next
Finally copy a screen shot of each report running to the word document
Upload the word document to blackboard
Contents of the flightsC.txt data file:
1234 Pittsburgh Phoenix04/02/2310:30am1085998500
4567 Boston New_York04/03/2318:10am21019912400
9876 Pittsburgh Seattle04/04/231:30pm11054912600
8888 Chicago Pittsburgh04/05/232:45pm1063998500
7777 Pittsburgh Miami04/06/239:35am116459161000
2892 Las_Vegas New_York04/07/238:10pm1074894600
4444 Pittsburgh San_Francisco04/23/235:55pm12469912450
2323 Atlanta New_York04/09/234:30pm11047516500
9281 Pittsburgh Seattle04/11/232:15pm21689081000
1000 Pittsburgh Phoenix04/12/233:25pm1504998500

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!