C PROGRAMMING Using the concept of structures in C programming, write a C program to assign passenger seats in an airplane. Assume a small airplane with seats numbered as follows: 1 A B C D 2 A B C D...


C PROGRAMMING


Using the concept of structures in C programming, write a C program to assign passenger seats in an airplane. Assume a small airplane with seats numbered as follows:








































1ABCD
2ABCD
3ABCD
4ABCD
5ABCD



The program should display the seat pattern, marking with an ‘X’ the seats already assigned. For example, after seats 1A, 2B, and 4C are taken, the display should look like:








































1XBCD
2AXCD
3ABCD
4ABXD
5ABCD



Seats are assigned by specifying a number and a letter. If the user types in a seat that is already assigned, the program should say that the seat is occupied and ask for another choice. The program should run until all seats are filled, or the user signals that the program should end.



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here