Laguna College
San Pablo City
ITE department
Chapter 3
Array Exercise Set A
Name : ________________________________________________ Date:__________
Course:____________
Create a program which gets the Name and Course of the visitors and put them in their respective table
number.
Table Layout
Table #1
1a 1c Table #3
1b 1d
Table #2
Table #4
2a 2c Detailed Design
2a 2c
2b 2d Diagram
2b 2d
2a 2c
2b 2d
Buttons
Show Specific Reservations
Once click, an input box will appear asking for table number and letter. If there exist a reservation, the
Name and Course will be shown otherwise “No reservations made” will appear.
Add Visitor
When clicked, an input box will appear asking for the table number and letter of the reservation. If there
are no issues regarding the inputs, another input box will appear asking for the name and course of the
visitor and a “Reservation has been made. Thank you!” message will appear. If table has been reserved
already a “Table already reserved. Please try again.” Message will appear.
Remove Visitor
This button will remove the reservation of the visitor by getting the table number and letter. If process is
successful a “Reservation has been removed.” Message will appear.
Show All Reservations
This button will show all the visitors of the all tables sequentially. If no reservations have been made, the
table seat should show an “empty” value for that seat.