public void DecidesCustomersBuys(Forecast forecast, Everyday everyday, int randomValue) { purchaseStatusProbablitity(forecast); purchaseTemperatureProbablitity(forecast); probablitityTopurchase(everyday); WillingToBuy(); CustomerPurchasesLemonade(randomValue); }
public Game() { rnd = new Random(); forecast = new Forecast(rnd); player = new Player(); store = new Store(); day = new Everyday(rnd); }
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; } }