Question: The programming language is C++ and here is the setup I have so far... #include #include #include using namespace std; //Function Prototypes void displayWelcomeMessage(); void

 The programming language is C++ and here is the setup Ihave so far... #include #include #include using namespace std; //Function Prototypes voiddisplayWelcomeMessage(); void displayInputCommand(char &); void displayCommands(); void displayFlightSchedule(); void displayErrorMessage(); void displayEndMessage();int getFlightNumber(); //Value return fuction for returning the flight index goes here.

The programming language is C++ and here is the setup I have so far...

#include #include #include using namespace std;

//Function Prototypes void displayWelcomeMessage(); void displayInputCommand(char &); void displayCommands(); void displayFlightSchedule(); void displayErrorMessage(); void displayEndMessage(); int getFlightNumber(); //Value return fuction for returning the flight index goes here. //Void function for display seating chart will go here. //Void function for display passenger list will go here. //Void function for booking a reservation will go here. //Void function for canceling a reservation will here.

//Declare Arrays int flightNumbers[8] = { 3548, 3488, 3498, 3644, 3487, 3497, 3645, 3549 }; char seats[4] = { 'A', 'B', 'C', 'D' }; int seatingChart[8][16][4] = { 0 }; string lastName[8][16][4] = { "" }; string firstName[8][16][4] = { "" };

int main() { //Declare Variables //int flightIndex = 0; char command = ' ';

displayWelcomeMessage(); system("cls"); displayCommands();

do { displayInputCommand(command);

switch (command) { case 'S': //Display Flight Schedule displayFlightSchedule(); break; case'D': //Display Seating Chart displayFlightSchedule(); //flightIndex = getFlightNumber(); //displaySeatingChart(flightIndex); break; case'B': //Book a Reservation displayFlightSchedule(); //flightIndex = getFlightNumber(); //displaySeatingChart(flightIndex); //bookReservation(flightIndex); break; case'C': //Cancel a Reservation displayFlightSchedule(); //flightIndex = getFlightNumber(); //displaySeatingChart(flightIndex); //cancelReservation(flightIndex); break; case'V': //Display Passenger List displayFlightSchedule(); //flightIndex = getFlightNumber(); //displayPassengerList(flightIndex); break; case'L': //Display Menu Commands displayCommands(); break; case'Q': //Exit The Program break; default: //Incorrent Command Entered displayErrorMessage(); break; } } while (command != 'Q');

displayEndMessage(); system("pause"); return 0; }

getFlightNumber() {

}

void displayWelcomeMessage() { cout

void displayInputCommand(char &) { cout > c; c = toupper(c); system("cls"); }

void displayCommands() { cout

void displayFlightSchedule() { cout

void displayErrorMessage() { cout

void displayEndMessage() { system("cls"); cout Overview The owner of a small regional airline, Tyler Eagle Jet, would like you to develop an airline reservation system that supports his business. The airline provides 8 flights daily between Tyler Pounds Field (TYR) and Dallas/Fort Worth (DFW). The cost of a round trip ticket is only $89. The flight schedule for this airline is as follows: Tyler Pounds Field (TYR) Flight no. 3548 3488 3498 3644 Depart TYR/Arrive DFW 06:30am/07:15am 10:55am/11:40am 04:25pm/05:10pm 05:50pm/06:35pm Dallas/Fort Worth (DFW) Flight no. 3487 3497 3645 3549 Depart DFW/Arrive TYR 09:45am/10:30am 03:15pm/04:00pm 04:40pm/05:25pm 08:10pm/08:55 pm Each flight is capable of carrying 64 passengers according to the seating chart below: 10 20 10 20 30 data8 5D 10 This is the aisle 110 110 9A 10A 10B 11A 118 12A 128 13A 13B 14A 14B 15A 15B 16A 16B 8D 90 9D 100 10D 11D 120 12D 130 13D 14C 14D 15C 15D 16C 16D

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!