Question: Using a 2D Vector Array , Write a C++ program that can be used to assign seats for a commercial airplane. The airplane has 13

Using a 2D Vector Array , Write a C++ program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row.

Rows 1 and 2 are first class.

Rows 3 through 7 are business class.

Rows 8 through 13 are economy class.

Your program must prompt the user to enter the following information: 1. Ticket type (first class ( first), business class ( Business ), or economy class ( economy ) 2. Desired seat ( Row Number , Seat ). Make this a menu-driven program; show the users choices and allow the user to make the appropriate choices.

Example of Output:

Using a 2D Vector Array , Write a C++ program that can

The purpose of this app is to assign seats for your reservation. This airplane has 13 rows, with six seats in each row. - Rows 1 and 2 are first class. Rows 3 through 7 are business class. - Rows 8 through 13 are economy class. Enter Your Ticket Type 1. Enter D for Displaying the Seating Chart 2. Enter F for First class 3. Enter B for Business Class 4. Enter E for Economy class 5. Enter X To Exit the App. a Invalid Choice Enter Your Ticket Type 1. Enter D for Displaying the Seating Chart 2. Enter F for First class 3. Enter B for Business Class 4. Enter E for Economy class 5. Enter X To Exit the App. F Enter Row (1-2) and seat ( A - F) Enter Row 1 Enter Seat A Seat: Row 1 Seat A is assigned Would you like to Assign another seat? (Y/N) --- N Thanks for using this APP

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!