public void BuildDays() { Days = new List <day>(); for (int i = 0; i < 7; i++) { day day = new day(); switch (i) { case 0: day.DayOfWeek = "Monday"; break; case 1: day.DayOfWeek = "Tuesday"; break; case 2: day.DayOfWeek = "Wednesday"; break; case 3: day.DayOfWeek = "Thursday"; break; case 4: day.DayOfWeek = "Friday"; break; case 5: day.DayOfWeek = "Saturday"; break; case 6: day.DayOfWeek = "Sunday"; break; default: break; } Days.Add(day); Days[i].RunDay(); string actualWeather = day.weather.GetDaysWeather(rng); Console.WriteLine("\r\nToday is " + day.DayOfWeek + ": " + actualWeather); // Console.WriteLine(actualWeather); Console.ReadLine(); //for (int i = 0; i < Days.Count; i++) //{ // Console.WriteLine(Days[i].DayOfWeek + " " + Days[i].weather.Temperature); //} } }
//methods public void RunGame() { Console.WriteLine($"Welcome to the Lemondade Stand Game. Your goal is to make as much profit as possible. You will do this by " + "making smart choices with your inventory and tweaking your recipe so it is popular with your customers. You will need to " + "monitor the weather as well and base your inventory on the current weather. You will purchase inventory before every new work day " + "can start. Pay attention to what works and adjust accordingly. Go make some money!!"); Console.WriteLine("\r\nThe 7 day forecast is as follows:"); day day = new day(); day.DisplayDay(rng); BuildDays(); Console.ReadLine(); }