Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Solution was not on Chegg, Introduction to Programming Using Visual Basic (10th Edition), Chapter 7, PP8. Airline Reservations Write a reservation system for an airline
Solution was not on Chegg, Introduction to Programming Using Visual Basic (10th Edition), Chapter 7, PP8.
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 be first come, first served", that is, people who are added early to the 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 passenger's 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. Seating Chart Nome (TA 1B, 1C. 1D, 2A10D) Add P senger Delete Passenger Waiting ist FIGURE 7.90 Possible outcome of g Project 8 (b) Remove a passenger from the flight. 1. Request the passenger's name 2. Search the seating chart for the passenger's 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) QuitStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started