Write a program to allow passengers to reserve seats in a small seven-row airplane, whose seats are numbered as follows: The program should display this seat pattern each time a passenger wants to...


Write a program to allow passengers to reserve seats in a small seven-row airplane, whose seats are numbered as follows:







The program should display this seat pattern each time a passenger wants to choose a seat. An “X” should mark seats already reserved. For example, after seats 1A, 2B, and 4C are reserved, the display should look like this:
















After the passenger chooses a seat, the seat pattern should be updated and displayed. If the passenger chooses an already occupied seat, display an error message.


The program should continue until either all seats are assigned or a signal is entered to end execution.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here