예제 #1
0
        public void ShowPredictedWeather(Recipe recipe, Game game, Money money, Store store, Inventory inventory, Customer customer, Weather weather, Day day)
        {
            switch (weatherNumber)
            {
            case 1:
                Console.WriteLine("Today's predicted weather forecast is Sunny and 90.");
                recipe.SetPriceOfLemonade(recipe, game, money, store, inventory, customer, weather, day);
                break;

            case 2:
                Console.WriteLine("Today's predicted weather forecast is Sunny but 60.");
                recipe.SetPriceOfLemonade(recipe, game, money, store, inventory, customer, weather, day);
                break;

            case 3:
                Console.WriteLine("Today's predicted weather forecast is Rainy and 60.");
                recipe.SetPriceOfLemonade(recipe, game, money, store, inventory, customer, weather, day);
                break;

            case 4:
                Console.WriteLine("Today's predicted weather forecast is Showers but 90.");
                recipe.SetPriceOfLemonade(recipe, game, money, store, inventory, customer, weather, day);
                break;

            case 5:
                Console.WriteLine("Today's predicted weather forecast is Hazy and 80.");
                recipe.SetPriceOfLemonade(recipe, game, money, store, inventory, customer, weather, day);
                break;

            default:
                break;
            }
        }