コード例 #1
0
        public void NewDay(int dayNum)
        {
            Day day = new Day(dayNum);

            day.GetWeather();      // new weather
            day.CreateCustomers(); // new customers
            days.Add(day);
        }
コード例 #2
0
 public void DisplayDay()
 {
     today.GetWeather();
     Console.WriteLine("You are on day " + daysPlaying + ", todays weather is " + today.GetWeather() + " with a temperature of " + today.GetTemperature());
 }
コード例 #3
0
 public void DisplayDay()
 {
     today.GetWeather();
     Console.WriteLine("Day " + dayCounter + "\nForecast is " + today.GetWeatherman());
 }