public int BagsOfIcePurchased(int bagsOfIceNeeded) { Ice ice = new Ice(); checkOutBagsOfIce = ice.GetCost() * bagsOfIceNeeded; return(checkOutBagsOfIce); }
public void AddIce(int NumberOfIceCubesNeeded) { for (int i = 0; i < NumberOfIceCubesNeeded; i++) { Ice ice = new Ice(); this.ice.Add(ice); } Console.WriteLine("You currently have {0} ice cubes.\n\n", ice.Count); }