A new seat booking system is required to help users reserve a seat based on the following requirements: First or Standard Class Window and/or Aisle. With or Without Table. Seat Price. When a suitable match is found, the user (identified by their eMail) should be able to reserve the seat. Seat reservations may also be cancelled. The seat data should be modelled in a file seats.txt that will contain the seat data and any reservations, though initially every seat should be unreserved. Upon application launch, the data should be loaded into appropriate data structures and upon application exit, the data should be saved back to the file.
A new seat booking system is required to help users reserve a seat based on the following requirements:
- First or Standard Class
- Window and/or Aisle.
- With or Without Table.
- Seat Price.
When a suitable match is found, the user (identified by their eMail) should be able to reserve the seat. Seat reservations may also be cancelled. The seat data should be modelled in a file seats.txt that will contain the seat data and any reservations, though initially every seat should be unreserved. Upon application launch, the data should be loaded into appropriate data structures and upon application exit, the data should be saved back to the file.
NOTE: The seats.txt file is attached in the images. The format of each seats’s data is as follows: seatNum seatClass isWindow isAisle isTable seatPrice eMail.
You are then required to produce a console application (using Java) that is driven by a repeating main menu (Attached in the image) with appropriate instructions and guidance throughout. Menu options should include reserving a seat, cancelling a seat and viewing seat reservations. Additional credit may be gained by implementing extra functionality:
- Performing Validation (i.e. fallacious input should be rejected).
- Before rejecting a reservation (i.e. no seats match the guest’s seat requirements) the application offers the “next best match” (i.e. we can match 3 of your 5 seat requirements).
Step by step
Solved in 6 steps with 14 images