Question: I need help with a question in Introduction to programming using VISUAL BASIC 10th edition, ch 7 PP8, I am lost on how to write
I need help with a question in Introduction to programming using VISUAL BASIC 10th edition, ch 7 PP8, I am lost on how to write the code. How is the code written in VISUAL BASIC and why? Below is the question I am referring to.
Airline Reservations: Write a reservation system for an airline flight. Assume the airplane has 10 rows with 4 seats in each row. See Fig 7.90. 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 first come, first served, that is, people who are added early to list get priority over those added later. Allow the user the following three options.
(a) Add a passenger to the flight or waiting list.
1. Request the passengers name.
2. Display a chart of the seats in the airplane in tabular form.
3. If seats are available, let the passenger choose a seat. Add the passenger to the seating chart.
4. If no seats are available, place the passenger on the waiting list.
(b) Remove a passenger from the flight.
1. Request the passengers name
2. Search the seating chart for the passengers name and delete it.
3. If the waiting list is empty update the array so the seat is available.
4. If the waiting list is not empty, remove the first person from the list, and give him or her the newly vacated seat
(c) Quit

seating Chart Nome Sest (TA 1B, 1C. 1D, 2A10D) Add Passenger Delete Passenger Quit Waiting ist FIGURE 7.90 Possible outcome of Programming Project 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
