from day16_menu import Menu, MenuItem
from day16_coffee_maker import CoffeeMaker
from day16_money_machine import MoneyMachine


def main():
    menu = Menu()
    machine = CoffeeMaker()
    cashier = MoneyMachine()
    while True:
        choice = input(f" What would you like? ({menu.get_items()}):")
        if choice == 'report':
            machine.report()
            cashier.report()
        elif choice == 'off':
            exit()
        elif menu.find_drink(choice):
            drink = menu.find_drink(choice)
            if machine.is_resource_sufficient(drink) and cashier.make_payment(drink.cost):
                machine.make_coffee(drink)


if __name__ == "__main__":
    main()

d5e628ac2bf735f16fed2abacb3fb93d90bf99ba
<mask token>

<mask token>


def main():
    menu = Menu()
    machine = CoffeeMaker()
    cashier = MoneyMachine()
    while True:
        choice = input(f' What would you like? ({menu.get_items()}):')
        if choice == 'report':
            machine.report()
            cashier.report()
        elif choice == 'off':
            exit()
        elif menu.find_drink(choice):
            drink = menu.find_drink(choice)
            if machine.is_resource_sufficient(drink) and cashier.make_payment(
                drink.cost):
                machine.make_coffee(drink)


<mask token>

<mask token>


def main():
    menu = Menu()
    machine = CoffeeMaker()
    cashier = MoneyMachine()
    while True:
        choice = input(f' What would you like? ({menu.get_items()}):')
        if choice == 'report':
            machine.report()
            cashier.report()
        elif choice == 'off':
            exit()
        elif menu.find_drink(choice):
            drink = menu.find_drink(choice)
            if machine.is_resource_sufficient(drink) and cashier.make_payment(
                drink.cost):
                machine.make_coffee(drink)


if __name__ == '__main__':
    main()

from day16_menu import Menu, MenuItem
from day16_coffee_maker import CoffeeMaker
from day16_money_machine import MoneyMachine


def main():
    menu = Menu()
    machine = CoffeeMaker()
    cashier = MoneyMachine()
    while True:
        choice = input(f' What would you like? ({menu.get_items()}):')
        if choice == 'report':
            machine.report()
            cashier.report()
        elif choice == 'off':
            exit()
        elif menu.find_drink(choice):
            drink = menu.find_drink(choice)
            if machine.is_resource_sufficient(drink) and cashier.make_payment(
                drink.cost):
                machine.make_coffee(drink)


if __name__ == '__main__':
    main()

from day16_menu import Menu, MenuItem
from day16_coffee_maker import CoffeeMaker
from day16_money_machine import MoneyMachine


def main():
    menu = Menu()
    machine = CoffeeMaker()
    cashier = MoneyMachine()
    while True:
        choice = input(f" What would you like? ({menu.get_items()}):")
        if choice == 'report':
            machine.report()
            cashier.report()
        elif choice == 'off':
            exit()
        elif menu.find_drink(choice):
            drink = menu.find_drink(choice)
            if machine.is_resource_sufficient(drink) and cashier.make_payment(drink.cost):
                machine.make_coffee(drink)


if __name__ == "__main__":
    main()
