public void purchaseStatusProbablitity(Forecast forecast) { if (forecast.status == "sunny") { statusPrediction = measurePercentage - .85; } else if (forecast.status == "Cloudy" || forecast.status == "foggy") { temperaturePrediction = measurePercentage - .50; } else if (forecast.status == "rainy" || forecast.status == "furries") { temperaturePrediction = measurePercentage - .25; } }
public Everyday(Random rnd) { forecast = new Forecast(rnd); this.rnd = rnd; }