Question: wirte a program using JAVA l You are the manager of a small Italian bistro. Each hour, your restaurant can accept up to 8 reservations
wirte a program using JAVA l
You are the manager of a small Italian bistro. Each hour, your restaurant can accept up to 8 reservations in each time slot. Although its a small number of tables, its important to keep track of reservations, because business has been very good.
In order to make a reservation, you need to take their name and phone number. Assign (hard code) the names and phone number for the first 5 people using parallel arrays. When the patrons arrive, the hostess will use your program to see if the reservation exists. So, your program should prompt the hostess for a name. If the name is on the reservation list, then you should display the accompanying phone number. If it is not on the list, the hostess should be prompted for a phone number, and add the new reservation to the list. The hostess should be able to continue to add reservations until the maximum of 8 reservations has been reached, so the user should be warned that there are no more available reservations for that hour.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
