Week005 – Machine Problem 1 Only NetBeans project will be accepted. Non-compliance will require resubmission. The highest score for resubmission is 50%. The user is not allowed to reserve a previously reserved seat. Display “Seat is taken” remarks. The user is not allowed to enter an invalid seat number. Display an error message. The program continuously loops. Sample Output: 1234567 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Enter seat number to reserve: 11 1234567 8 9 10 X 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 Enter seat number to reserve:
-
Create a NetBeans project for this activity. Project Name: MP1_<lastname_firstname> Example: MP1_Blanco_Maria
-
Compress the NetBeans project into .rar or .zip format and then upload to the link provided in the LMS.
Program Specification:
-
Use two-dimensional array with size 7 columns and 5 rows.
-
Seat numbers are populated during run-time and not hard-coded.
-
User is asked to input a seat number.
-
The chosen seat number is replaced by the letter X.
-
Program displays a remark “Seat successfully reserved” when reservation is done.
The class name should be SeatReservation_<lastname>.
Assessments
Example: SeatReservation_Blanco
Week005 – Machine Problem 1
Only NetBeans project will be accepted. Non-compliance will require resubmission. The highest score for resubmission is 50%.
-
The user is not allowed to reserve a previously reserved seat. Display “Seat is taken” remarks.
-
The user is not allowed to enter an invalid seat number. Display an error message.
-
The program continuously loops.
Sample Output: 1234567 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
Enter seat number to reserve: 11
1234567 8 9 10 X 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
Enter seat number to reserve:
Step by step
Solved in 2 steps with 1 images