public int generateNumberOfCustomers(Lemonade recipe, Weather forcast) { int numberOfCustomers = 10; if (forcast.getWeather() == "sunny") { numberOfCustomers = randomSeed.Next(50, 75); } else if (forcast.getWeather() == "cloudy") { numberOfCustomers = randomSeed.Next(25, 50); } else if (forcast.getWeather() == "rainy") { numberOfCustomers = randomSeed.Next(11, 25); } return(numberOfCustomers); }
public void displayPurchaseScreen(Player player, Weather forcast) { Inventory playerInventory = player.getInventory(); Console.WriteLine("Inventory/Purchasing"); Console.WriteLine("The Forcast for tomorrow is: " + forcast.getTempurature() + " and " + forcast.getWeather()); Console.WriteLine("You have:"); Console.WriteLine("$" + player.getMoney()); Console.WriteLine(playerInventory.getCups() + " Paper Cups"); Console.WriteLine(playerInventory.getNumOfLemons() + " Lemons"); Console.WriteLine(playerInventory.getSugar() + " Cups of Sugar"); Console.WriteLine(playerInventory.getIceCubes() + " Ice Cubes"); Console.WriteLine("Would you like to:"); Console.WriteLine("1. buy more cups."); Console.WriteLine("2. buy more Lemons."); Console.WriteLine("3. buy more sugar."); Console.WriteLine("4. buy more ice cubes"); Console.WriteLine("5. Continue"); }