Beispiel #1
0
 public double SellLemonade(double pricePerCup, bool buy, int cupsSold)
 {
     if (buy == true)
     {
         wallet.balance += (pricePerCup * cupsSold);
         inventory.CheckNewPitcher(cupsSold);
         return(wallet.balance);
     }
     return(wallet.balance);
 }