Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

in JAVA PLEASE
image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

=+appointed government officials or someone else?

Answered: 1 week ago

Question

Organizing Your Speech Points

Answered: 1 week ago