Question: Le Chef Heureux Restaurant has 20 tables that can be reserved at 5 pm, 7 pm, or 9pm. Design a program that accepts reservations for
Le Chef Heureux Restaurant has 20 tables that can be reserved at 5 pm, 7 pm, or 9pm. Design a program that accepts reservations for specific tables at specific times; the user enters the number of customers, the table number and the time. Do not allow more than four guests per table or invalid table numbers or times. If an attempt is made to reserve a table already taken, reprompt the user. Continue to accept reservations until the user enters a sentinel value or all slots are filled. Then display all empty tables in each time slot.
Step by Step Solution
3.45 Rating (168 Votes )
There are 3 Steps involved in it
Flowchart Pseudocode start Declarations num NUMTIMES 3 num NUMTABLES 20 num reservationsNUMTIMESNUMT... View full answer
Get step-by-step solutions from verified subject matter experts
