Python Cofee Machine
$5
https://schema.org/InStock
usd
Ian Mukanda
A beginner-friendly step-by-step guide to coding a Coffee Maker in Python Read Full Guide here
The program will function as follows: The program will display menu items and ask the user if they want a drink. The user may choose a drink of their liking. If the user chooses a drink, we will have to make sure our coffee machine has enough resources to make the coffee. If it has, then we will continue ahead. Otherwise, we will let the user know. If the resources are enough, then we will ask the user for payment in the form of coins of nickels, pennies, dimes, and quarters. We will calculate the payment made versus the cost. If the payment is complete, we will make the coffee and serve it. If the payment made is more than the price of the coffee, we will give them their change back. Otherwise, if the payment falls short of the price, we will reject the order and give back their coins. An exception we will add is that if someone from management wants to know the resources left, or the money the machine has stored after completing orders, they may access this by typing ‘report’. Moreover, if the management wants to switch off the machine completely, they may do so by typing ‘off’
Size
3.39 KB
Add to wishlist