Posted: September 3rd, 2023

Airlinereservation with waitinglist vb2010 | Computer Science homework help

Visual Basic 2010

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

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.

a. Request the passenger’s name.

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

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

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

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

2.        Remove a passenger from the list

a. Request the passengers name

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

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

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

 

3.        Quit 

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
error: Content is protected !!
Open chat
1
Order through WhatsApp!
affordablepaperwritings.com
Hello!
You Can Now Place your Order through WhatsApp
 

 

 

Order your essay today and save 15% with the discount code DISCOUNTS2023