Ejemplo n.º 1
0
        public double CalculateTempAndWeatherFactors()
        {
            double tempFactor = temp;

            double customerVarietyFactor = UserInterface.RandomNumber(0, 100);
            double weatherFactor         = UserInterface.DetermineWeatherFactor(weather);

            likelyToBuy = (tempFactor + weatherFactor + customerVarietyFactor) / 3;
            return(likelyToBuy);
        }
Ejemplo n.º 2
0
        public int GetCrowdSize()
        {
            double baseCrowd     = UserInterface.RandomNumber(75, 120);
            double weatherFactor = UserInterface.DetermineWeatherFactor(weather.condition);
            double newCrowd      = Math.Floor(((weatherFactor / 100 * 1.5) + .2) * baseCrowd);

            int crowdInt = Convert.ToInt32(newCrowd);

            return(crowdInt);
        }