Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Java Compress the project folder and create a zip file for submission. The general rubrics are given below: Task: Write a program to assign

Use Java

image text in transcribedimage text in transcribed

Compress the project folder and create a zip file for submission. The general rubrics are given below: Task: Write a program to assign passengers seats in an airplane. Assume a small airplane with seat numberings as follows: 1234567AAAAAAABBBBBBBCCCCCCCDDDDDDD The program should display the seat pattern, 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: 1234567XAAAAAABXBBBBBCCCXCCCDDDDDDD After displaying the seats available, the program should prompt for the seat desired, the user can type in a seat, and then the display of available seats should be updated. This continues until all seats are filled or until the user signals that the program should end. If the user types in a seat that is already 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. 1 A B C D 2 A B C D 3 A B C D 4ABCD 5ABCD 6 A B C D 7 A B C D You will input the seat selection using the row number and then the seat letter (ex3B) Please enter the seat number or Q to quit. 1C 1234567AAAAAAABBBBBBBCCCCCCDDDDDDD Please enter the seat number or Q to quit. 3A 1ABD 2ABCD 3BCD 4ABCD 5 A B C D 6 A B C D 7 A B C D Please enter the seat number or Q to quit. 5D 1ABD 2 A B C D 3BCD 4 A B C D 5 A B C X 6 A B C D 7 A B C D 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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Discuss the history of human resource management (HRM).

Answered: 1 week ago