예제 #1
0
 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;
     }
 }
예제 #2
0
 public Everyday(Random rnd)
 {
     forecast = new Forecast(rnd);
     this.rnd = rnd;
 }