-
Description Restaurant Reservations
A fancy restaurant has the following rules of operation:
- There is one seating each day, at 7:00 PM
- There is a fixed capacity of 12 customers
They would like to implement a reservation request system.
- Accepts date, name, phone, party size
- Renders yes/no decision on each reservation request based on available capacity and party size
Code class ReservationSystem { }
Test Cases import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; // TODO: Replace examples and use TDD by writing your own tests class SolutionTest { void testSomething() { // assertEquals("expected", "actual"); } }
Output:
-
- All
- {{group.name}} ({{group.count}})
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}