Question: Can someone help me out with this program? Write an interactive menu driven program in Java to implement a seat reservation system for a passenger

Can someone help me out with this program?

Write an interactive menu driven program in Java to implement a seat reservation system for a passenger airplane. Assume a small plane with seat numberings as follows:

1 A B C D

2 A B C D

3 A B C D

4 A B C D

5 A B C D

6 A B C D

7 A B C D

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

1 X B C D

2 A X C D

3 A B C D

4 A B X D

5 A B C D

6 A B C D

7 A B C D

After displaying the seats available, the program should prompt for the seat desired, input the seat number typed by the user and then display the updated seat chart. This continues until all the seats are filled or until the user desires to quit. 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.

NOTE: The program must input a seat number as a string

e.g. 3A,5C etc. and then determine the row number and the

column number of the array that needs to be accessed. Also, no

spaces are allowed in the input seat number.

You should create a project, named Project2 and the project should contain a class named Program2 containing the main method for this application.

Your program should be well documented and in particular, begin with a series of comments specifying:

what the program does.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!