Example #1
0
 public List <Customer> MakeCustomersForDay(int temperature)
 {
     if (temperature <= 50)
     {
         return(Repetitive.MakeCustomer(15, customers));
     }
     else if (temperature > 50 && temperature <= 80)
     {
         return(Repetitive.MakeCustomer(25, customers));
     }
     else if (temperature > 80 && temperature <= 100)
     {
         return(Repetitive.MakeCustomer(50, customers));
     }
     else if (temperature > 100)
     {
         return(Repetitive.MakeCustomer(100, customers));
     }
     return(MakeCustomersForDay(temperature));
 }
Example #2
0
 public void InstantiateDay()
 {
     gameLength = UI.GetUserNumberInput("How many days would you like to play?");
     day        = Repetitive.InstantiateDaysForGameDuration(gameLength, day);
 }