AirlineReservation VB12

Write a reservation system for an airline flight. Assume the airplane has 10 rows with 4 seats in each row. Use a two dimensional array of strings to maintain a seating chart. In addition, create an array to be used as a waiting list in case the plane is full. The waiting list should be “first come first serve” that is people who are added early in the list get the priority over those who are added later. Allow the user to choose from three options.

  1. Add a passenger to the seat or waiting list.

  2. Request the passenger’s name.

  3. Display a chart of the seats in the airplane in a tabular form.

  4. If seats are available let the passenger choose a seat. Add the passenger to the seating chart.

  5. If no seats are available, place the passenger on the waiting list

  6. Remove a passenger from the list

  7. Request the passengers name

  8. Search the seating chart for the passenger’s name and delete it.

  9. If the waiting list is empty, update the array so that seat is available

  10. If the waiting list is not empty remove the first person from the list, and give him/her the newly vacated seat

  11. Quit

Powered by