Create a vending / drinks machine which will:
You will use the following programming skills:
|
Useful Skills
Create variables Water = 95 Cola = 45 Ask users for input and store in the variables money = (int(input(“Please Enter the Amount of Money”) Use conditionals, If, Elif and Else statements if drink_choice = 2: print(“You selected Cola”) if drink_choice = 5: if money >= tea: money = money – tea print (“Your change is …”) else: |
- Extensions:
- Add more products
- Create a feature that tracks the stock levels and warns of low stock levels
- Build a simple GUI
- If your are stuck try this starter program