I've found similar questions to this one, but I couldn't find one that had Seat used as
Question:
I've found similar questions to this one, but I couldn't find one that had Seat used as a class (and java). Can you help, please?
Create a program that allows users to select a seat on an airplane
Requirements:
13 Rows on plane
6 Seats in each row
Row 1-2 are First Class
Row 3-7 are Business Class
Row 8-13 are Economy Class
Consider Economy, Business, First all inherit from Seat
User Input Expectations
a. Ticket type (First Class, Business Class, Economy Class)
b. Desired seat
Provide an output of the seating plan
A B C D E F
R1 * * X * X X
R2 * X * X * X
R3 * * X * X X
R4 X * X X * X
R5 * X * X * *
R6 X * * * * X
R7 X * X * X X
R8 * X * X X *
R9 X * X X * X
R10 * X * X X X
R11 * * X * X *
R12 * * X X * X
R13 * * * * X *
* - Seat available
X - Seat occupied
Allow the user to select the information based on the seating plan.
Test the selection is valid and available
A menu-driven interface might be the safest method to interact with the user.
Elaborate please!