コード例 #1
0
ファイル: Day.cs プロジェクト: loganmiller001/MyLemonadeStand
        public void CalculateRevenue(Inventory inventory, Day day)
        {
            double moneyToAdd = price * numberOfCustomers;

            Console.WriteLine($"You have had {numberOfCustomers} customers buy lemonade for ${moneyToAdd}");
            inventory.AddMoney(moneyToAdd, inventory);
            inventory.CalculateProfit(moneyToAdd);
        }