Beispiel #1
0
        ////member method(can do)
        /// the day need to have customers
        /// day needs to have the weather
        public int RunDay()
        {
            // run the day

            int temperatureShift = weather.GenerateNumberWithinRange(-10, 11);

            actualTempature = weather.GenerateNumberWithinRange(50, 100) + temperatureShift;
            return(actualTempature);


            //actualForecastOptions = new List<string>() { "Sunny", "Rainy", "Cloudy", "Hazy" };
            //actualForecast = DisplayWeather();
        }
Beispiel #2
0
 //constructor
 public Day()
 {
     actualForecastOption = new List <string>()
     {
         "Sunny", "Rainy", "Cloudy", "Hazy"
     };
     weather         = new Weather();
     actualTempature = weather.GenerateNumberWithinRange(50, 100);
     createCustomers = new List <string>();
 }