Coffee machine coding in Python
Create main.py file and paste the code below from menu import Menu, MenuItem from coffee_maker import CoffeeMaker from money_machine import MoneyMachine menu = Menu() coffeemaker = CoffeeMaker() moneymachine = MoneyMachine() # menuitem = MenuItem() machine_on = True while machine_on: user_input = input("What would you like to have? ") if user_input == 'report': print(coffeemaker.report()) elif user_input == 'off': machine_on = False else: item = menu.find_drink(user_input) is_available = coffeemaker.is_resource_sufficient(item) if is_available: recieve_money = moneymachine.make_payment(item.cost) if recieve_money: coffeemaker.make_coffee(item) Create Coffeemaker.py file and paste the code below class CoffeeMaker: """Models the machine that makes the coffee""" def __init__(self): self.resources = { "water": 300, "milk"...