Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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) Quit

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning VB.NET Databases

Authors: Thearon Willis

1st Edition

1594864217, 978-1594864216

More Books

Students also viewed these Databases questions

Question

4. How do people respond to cultural diff erences in communication?

Answered: 1 week ago

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago

Question

How are members held accountable for serving in the assigned roles?

Answered: 1 week ago