Question: in JAVA PLEASE Task Write a program to assign passengers seats in an airplane. Assume a small airplane with seat numbering as follows: IABCD2.ABCD3ABCD4ABCD5ABCD6ABBC7ABCD The

Task Write a program to assign passengers seats in an airplane. Assume a small airplane with seat numbering as follows: IABCD2.ABCD3ABCD4ABCD5ABCD6ABBC7ABCD The program should dieplay the scat partem, with an X marking the seats already assigned. For example, after seats 1A, 2B, and 4C are taken, the display should look like the following: 1BCD2ACD3A=BD4A=BD5ABCD6ABBD7ABBD After displaying the seats available, the program should prompt for the seat derired, the user cin type in a seat, and then the display of available seats should be updated. This continues antil all seats are filled or until the user signals that the program should end. If the user types in a seat that is aleeady assigned, the program should say that that seat is occupied and ask for another choice. Sample output is depicted in the following figures: You will be selecting seats for this airplane. 1AABCD 2AABCD 3AABCD 4ABCC 4ABC 5ABCD 6ABCCD 7ABCD You wil1 input the seat selection using the row number and then the seat letter ( ex 38) please enter the seat number or Q to quit. Please enter the seat number or Q to quit. 3A1234567AAAAAAABBBBBBBCCCCCCDDDDDDD Please enter the seat number or Q to quit. 5D1234567AAAAAABBBBBBBXCCCCCCDDDDXDD Please enter the seat number or Q to quit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
