Project #27685 - c++ homework

You are to use the code from Phase I and add to it.  You are to add code to the following functions:

Start_program 

This function will be the first thing to run when your program executes.  This function will open a text file called flights.dat  and read flight information into parallel arrays. This data file is on blackboard and must be copied into the folder of your C++ project where your .cpp file is. The flight information that will be read in is as follows:

Flight number  (a four digit integer code)

Flight city origin (string)

Flight city destination (string)

Flight date (string)

Flight time (string)

Strat_program1 

This function run right after start_program and will open a file called reservation.dat and read reservation information into a second set of parallel arrays.  This data file is on the shell and must be copied into the folder of your C++ project where the .cpp file is. The reservation information that will be read in is as follows:

Reservation code ( a four digit integer code)

Flight number ( a four digit integer code)

Last name (string)

First name (string)

Type of seat (string) business, coach, first

Cost of seat (double)

Report 

When this function is called, the following menu will print:

 

Acme Airlines

All flight Info

All Reservation Info

Value of reservations of a specific type

All Reservations on a specific flight 

Report 5

Report 6

Report 7

Report 8

Exit Report Menu

Please make your selection  >

The above menu will keep running until the user selects 6. Exit Report Menu (you will need another while loop)

Each report is defined as follows:

All flight Info – Displays all information on all flights

All Reservation Info –Display all reservation information

Prompt for the type of seat and print all reservations of that type.  Also calculate and print the total value of that reservation type

Prompt for the flight number and print the reservations on that flight

Reports 5,6,7,8 will be defined in phase III of the project

 

You are to upload a word document to blackboard that contains the following:

Source code for the program

 

Screen shot of each report running on the screen

Subject Computer
Due By (Pacific Time) 04/14/2014 11:59 pm
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy