Question: C++ Using Dynamic Arrays: Write a program to assign passengers seats in an airplane. Begin by asking the user how many rows the plane has.
C++
Using Dynamic Arrays:
Write a program to assign passengers seats in an airplane. Begin by asking the user how many rows the plane has.
The Seating Chart is to be built as follows and the number of rows changes depending on how many rows the user states as follows:
1 A B C D
The program will display the chart following the question regarding the number of rows and then will ask the user which seat they would like to reserve. The user then indicates the seat desired by the row and column after which the chart is updated with that seat letter being replaced with an x indicating it is no longer available. This continues until all seats are filled or until the user indicates that they would no longer like to select more seats. If the user tries to select a seat already taken the program will indicate that the seat requested is already taken and request that the user input another selection.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
