Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C# Program Needed.ASAP As per Requirements. Problem Specification: (Airline Reservation System) 1. Write a reservation system for an airline flight seating. Assume the airplane has

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

C# Program Needed.ASAP As per Requirements. Problem Specification: (Airline Reservation System) 1. Write a reservation system for an airline flight seating. Assume the airplane has 5 rows with 3 seats in each row 2. Allow the user the following options: Add a passenger to the flight or waiting list. a. Request the passenger's name. Display a chart of the seats in the airplane. (when All Seats" are pressed); If seats are available, let the passenger choose a seat. Update the passenger to the seating chart You cannot add a person to waiting list (size 10) if there are seats available. If no seats are available, place the passenger to the waiting list. In this case, "Book" and "Add to waiting list" buttons will do the same thing (the person will be added to the waiting list). If waiting list is full don't add to waiting list, just show a message that the waiting li If seats are available, "add to waiting list" button will not do anything, except showing a message "Seats are available By pressing "Status" button, the status (Available/Not Available) will be shown. i. ii. ii. iv. v. if full vi. vii. b. Remove a passenger from the flight i. Choose the seat number to be cancelled ii. Delete the passenger's name. ii. If the waiting list is empty, update the array so the seat is available iv. If the waiting list is not empty, remove the first person from the list, and give him or her newly vacated seat. 3. Show message when c. "Book" is pressed but no passenger name, and seat is specified. d. "Book" is pressed when an already booked seat is chosen. e. Add to Waiting List" is pressed when there are seats available. f. "Cancel" is pressed without specifying the seat. g. After successfully booking. h. After successfully cancelling a seat. i. After successfully adding to waiting list. 2. Add a "Fill All" button. Clicking this button will fill all the 15 seats. You may use the same passenger name for all seats. 3. Don't restrict the length of the passenger name. For example, I should be able to book a person with name "a" 1 of 4 C# Program Needed.ASAP As per Requirements. Problem Specification: (Airline Reservation System) 1. Write a reservation system for an airline flight seating. Assume the airplane has 5 rows with 3 seats in each row 2. Allow the user the following options: Add a passenger to the flight or waiting list. a. Request the passenger's name. Display a chart of the seats in the airplane. (when All Seats" are pressed); If seats are available, let the passenger choose a seat. Update the passenger to the seating chart You cannot add a person to waiting list (size 10) if there are seats available. If no seats are available, place the passenger to the waiting list. In this case, "Book" and "Add to waiting list" buttons will do the same thing (the person will be added to the waiting list). If waiting list is full don't add to waiting list, just show a message that the waiting li If seats are available, "add to waiting list" button will not do anything, except showing a message "Seats are available By pressing "Status" button, the status (Available/Not Available) will be shown. i. ii. ii. iv. v. if full vi. vii. b. Remove a passenger from the flight i. Choose the seat number to be cancelled ii. Delete the passenger's name. ii. If the waiting list is empty, update the array so the seat is available iv. If the waiting list is not empty, remove the first person from the list, and give him or her newly vacated seat. 3. Show message when c. "Book" is pressed but no passenger name, and seat is specified. d. "Book" is pressed when an already booked seat is chosen. e. Add to Waiting List" is pressed when there are seats available. f. "Cancel" is pressed without specifying the seat. g. After successfully booking. h. After successfully cancelling a seat. i. After successfully adding to waiting list. 2. Add a "Fill All" button. Clicking this button will fill all the 15 seats. You may use the same passenger name for all seats. 3. Don't restrict the length of the passenger name. For example, I should be able to book a person with name "a" 1 of 4

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

More Books

Students also viewed these Databases questions