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 (i.e. Appendix A) is provided on attached images. You should download the file to a new folder called data on your M: drive. The format of each seats’s data is as follows : seatNum seatClass isWindow isAisle isTable seatPrice eMail See Appendix A for further explanation of the file seats.txt You are then required to produce a console application (using Java) that is driven by a repeating main menu (i.e. Appendix B) 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 (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).
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 (i.e. Appendix A) is provided on attached images. You should download the file to a new folder called data on your M: drive.
The format of each seats’s data is as follows :
seatNum seatClass isWindow isAisle isTable seatPrice eMail See Appendix A for further explanation of the file seats.txt
You are then required to produce a console application (using Java) that is driven by a repeating main menu (i.e. Appendix B) 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 (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 2 steps