Write a program that simulates the booking of seats on board a small airplane. The layout of the aircraft is illustrated
below. You will be required to create a menu based system with the following choices:
(a) View Seating (b) Book a Seat (c) Cancel a Booking (d) Reset All (e) Quit
Each of the above will require a method which takes an array as a parameter. You can of course add more options to
this basic menu list if you wish. However at all times the user should be able to view the state of the aircraft bookings
i.e. option (a) and thus be presented with a representation of a 2D array similar to that below:
You are required to output the current values of the array to show the current seating arrangement in graphic format. As
can be seen, you will need output some space for an aisle to separate columns A and B from columns C and D.
Similarly rows 1-4 (non-smoking) should be output separately from rows 5 – 6 (smoking)
The grid references should also be output to the screen. A,B,C and D for the columns and 1-8 for the rows. You don’t
have to simulate the box effect as in the diagram above, but try to keep the output as clear as possible with all reference
Use ‘X’ to indicate that a seat is booked and a hyphen ‘-‘ to indicate that the seat is still available.
Bookings can be made by selecting option (b) At which point the user is asked which seat number (reference) they
wish to book. For example, seat B4 is selected in the diagram above.
Option (c) should allow the user to enter a booked seat reference and make it available again. Option (d) Should reset
the bookings and free up ALL seats once again.
Things to consider : Smoking or Non-Smoking:
Seats in rows 5,6,7 and 8 are designated as smoking seats. When making a booking - option (c) - the user should be
asked their preference (Smoking or non-smoking?) If for example they choose smoking and all seats are full in that
section, they should be informed of this and offered a seat in the non-smoking section. If the seats are not full in the
smoking section and they proceed to enter a reference number that is in the non-smoking section,
hi, can some one plz help me with this , even to ge tit started thnx