Question
Airline Seating Program Using pointers: Program requests number of rows, (n rows)then displays the seating pattern with an X for occupied rows 1 X B
Airline Seating Program Using pointers: Program requests number of rows, (n rows)then displays the seating pattern with an X for occupied rows
1 X B C D //
2 A X C D //
3 A B C D //
4 A B X D .
A B C D
n-1 A B C D //
n A B C D
The program then requests a choice of seat. If the seat if available, then the seating display is updated. Otherwise, the program requests another choice of seat.
KNOWN BUGS: If the user incorrectly enters the seat letter for the row designation, the program goes into a continuing loop. Control C under most operating systems stops the program. Typical run Savitch Airlines Seat Reservation Program. Reserved seats are marked 'X'. Others are available.
Please enter the number of rows 6
A B C D
A B C D
A B C D
A B C D
A B C D
A B C D
Savitch Airlines Seat Reservation Program. Reserved seats are marked 'X'. Others are available. Please enter your request in the form "3 C" for Row 3, Seat C There are 7 rows. Seats are A, B, C, D. 3D
A B C D
Please help me use 3D array and pointers. Please write in C++. Thank you!
A B C D
A B C X
A B C D
A B C D
A B C D
N or n quits, anything else continues y Savitch Airlines Seat Reservation Program. Reserved seats are marked 'X'. Others are available. Please enter your request in the form "3 C" for Row 3, Seat C There are 7 rows. Seats are A, B, C, D. 3D
****That seat is taken****.
****No assignment made****.
****Please make another request****
A B C D
A B C D
A B C X
A B C D
A B C D
A B C D
N or n quits, anything else continues n
Press any key to continue */
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started