Visual Basic 2010
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.
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
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more