예제 #1
0
        static void Main(string[] args)
        {
            MckinneyDiner restaurantCustomer = new MckinneyDiner();

            restaurantCustomer.addCustomerToQueue(1);
            restaurantCustomer.addCustomerToQueue(2);
            restaurantCustomer.addCustomerToQueue(3);
            restaurantCustomer.addCustomerToQueue(4);
            restaurantCustomer.addCustomerToQueue(5);
            restaurantCustomer.addCustomerToQueue(6);

            restaurantCustomer.CustomerSeated();

            restaurantCustomer.actualCustomer();

            MckinneyDiner Cutomerpaid = new MckinneyDiner();

            Console.WriteLine("Customer 1 has paid for their meal!");
            Console.WriteLine("The server can place the dishes back and seat the next customer!");
        }
예제 #2
0
        static void Main(string[] args)
        {
            MckinneyDiner restaurantCustomer = new MckinneyDiner();

            restaurantCustomer.addCustomerToQueue(1);
            restaurantCustomer.addCustomerToQueue(2);
            restaurantCustomer.addCustomerToQueue(3);
            restaurantCustomer.addCustomerToQueue(4);
            restaurantCustomer.addCustomerToQueue(5);
            restaurantCustomer.addCustomerToQueue(6);

            restaurantCustomer.CustomerSeated();

            restaurantCustomer.actualCustomer();



            restaurantCustomer.CustomerDishes("dish1");
            restaurantCustomer.CustomerDishes("dish2");
            restaurantCustomer.CustomerDishes("dish3");

            restaurantCustomer.CleanTheDishes();
            restaurantCustomer.CleanPile();
        }