Question: Write a java program for airline ticket reservations: Assume you are writing a program to take reservations for a plane. Your reservation will only have
Write a java program for airline ticket reservations:
Assume you are writing a program to take reservations for a plane. Your reservation will only have the following: name (first and last) and seat (row (integer) and letter). This information must be in an object.
None of this would make sense if you did not know the seats in your airplane hence 5 rows (integer) with 4 seats (characters) per row.
Your program should print out the plane diagram (sort of) showing the seats available as a 0 and filled as an X. Also the rows should be row 1 to row N and what is in each row.
The reservation system should ask what the user wants as in 1 or 2 seats. (No families) This information MUST be in an arrayList when they reserve seats.
Your system, should allow the user to request 1 or 2 seats on the plane. If the user requests 2 and they are not together it should inform the user and allow them to decide whether they want to purchase a ticket.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
