Starting from:
$30

$24

Assignment 1 Solution

Assignment due: Check eConestoga

Problem Specification: (Airline Reservation System)

Write a reservation system for an airline flight seating. Assume the airplane has 5 rows with 3 seats in each row.
Allow the user the following options:
Add a passenger to the flight or waiting list.

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 list if full.
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.
Remove a passenger from the flight

Choose the seat number to be cancelled.
Delete the passenger’s name.
If the waiting list is empty, update the array so the seat is available
If the waiting list is not empty, remove the first person from the list, and give him or her newly vacated seat.
Show message when
“Book” is pressed but no passenger name, and seat is specified.
“Book” is pressed when an already booked seat is chosen.
“Add to Waiting List” is pressed when there are seats available.
“Cancel” is pressed without specifying the seat.
After successfully booking.
After successfully cancelling a seat.
After successfully adding to waiting list.
Add a “Fill All” button. Clicking this button will fill all the 15 seats. You may use the same passenger name for all seats.
Don’t restrict the length of the passenger name. For example, I should be able to book a person with name “a”.



Remember to incorporate the followings for all assignments (if applicable)

Add Header comments.
Add Documentation comment.
Incorporate all the highlighted standards provided on Standard Summary.
Add Implementation comments where (you think) necessary.















Note:

You *may* use your own imagination for designing the user interface. The snapshot of the Form is given only to clarify the requirement. You don’t have to make it exactly the same (but you are certainly welcome to make it the same).
You must not use any collection/Listbox for showing all passengers and waiting list. You need to use arrays and loop to generate the output.
Don’t disable/enable any button. All buttons should be enabled all the time.



Hints:

You must generate at least 1 - 2-dimentional array to store passenger information. Use array to store waiting list.
Use loop to iterate through all the array elements and generate a string. Then show the string in the RichTextBox when “show all” and “show waiting list” buttons are pressed.






Softcopy Submission Requirements

Name the project as follows:
FirstNameInitialLastNameAssignmentAssignmentnumber

Replace FirstNameInitial and LastName based on your name. (Example: if the

student’s name is Jason Bourne, for Assignment 1, the name of the project

will be JBourneAssignment1)

Upload the entire solution (after zipping it up) to eConestoga. Make sure the executable also fulfills the naming rule mentioned at point 1.

More products