Пример #1
0
 public void DecidesCustomersBuys(Forecast forecast, Everyday everyday, int randomValue)
 {
     purchaseStatusProbablitity(forecast);
     purchaseTemperatureProbablitity(forecast);
     probablitityTopurchase(everyday);
     WillingToBuy();
     CustomerPurchasesLemonade(randomValue);
 }
Пример #2
0
        public Game()

        {
            rnd      = new Random();
            forecast = new Forecast(rnd);
            player   = new Player();
            store    = new Store();
            day      = new Everyday(rnd);
        }
Пример #3
0
 public void probablitityTopurchase(Everyday day)
 {
     if (day.probabilityToPurchase == .50)
     {
         investmentPrediction = measurePercentage - .85;
     }
     else if (day.probabilityToPurchase == .75)
     {
         investmentPrediction = measurePercentage - .50;
     }
     else if (day.probabilityToPurchase == 1.00)
     {
         investmentPrediction = measurePercentage - .25;
     }
     else if (day.probabilityToPurchase == 1.25)
     {
         investmentPrediction = measurePercentage - .15;
     }
 }