Move History

Fork Selected
  • 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 {
        @Test
        void testSomething() {
            // assertEquals("expected", "actual");
        }
    }