Exemple #1
0
 private void QueryPriceToSellGlasses(Stand stand)
 {
     while (true)
     {
         Print();
         Print("WHAT PRICE (IN CENTS) DO YOU WISH TO CHARGE FOR LEMONADE ");
         stand.PricePerGlassCents = int.Parse(_io.GetInput());
         if (stand.PricePerGlassCents > 0 && stand.PricePerGlassCents < 100)
         {
             return;
         }
         Print("COME ON, BE REASONABLE!!! TRY AGAIN.");
     }
 }