Question
Cup of Joe Joe cafe offers three choices of coffee: 'espresso', 'americano', or 'latte'. It allows the customers to bring their own mugs for coffee,
"Cup of Joe Joe" cafe offers three choices of coffee: 'espresso', 'americano', or 'latte'. It allows the customers to bring their own mugs for coffee, therefore cutting the use of single-use disposable cups. Selling less than 8 oz of coffee in one transaction is not profitable for the cafe. Mugs bigger than 20 oz don't fit into the coffee dispenser. Hence, each cup of coffee sold will contain between 8 and 20 oz of coffee. (For simplicity, only the whole ounce amounts will be used).
Your program will help baristas make coffee for a customer. Specifically, it will take the customer's request and produce the associated order message.
Your application will need to perform the following: Have the customer enter the type of coffee they want. If the customer does not provide one of the above options, your program will print the following error message: ""Sorry, I didn't get that. Could you please try again?"" and ask them again. If the customer orders three types incorrectly, end your program at this point with the following message: "Sorry, we cannot help you here."
Once the customer makes a choice of coffee, the program will ask the customer for the size of coffee they want. After three unsuccessful attempts, display "Sorry, we cannot help you here." and end the program.
If the user correctly selects type and size of coffee, your program will print out the customer's coffee message. (PYTHON PLEASE)
Here's a sample run of your program:
Welcome to Cup of Joe Joe! We have espresso, americano, and latte. What would you like to drink? latte How many oz would you like? 10 Here's your 10 oz cup of latte
Here's another one:
Welcome to Cup of Joe Joe! We have espresso, americano, and latte. What would you like to drink? coffee Sorry, I didn't get that. Could you please try again? americano How many oz would you like? 25 Value is too large 24 Value is too large 23 Sorry, we cannot help you here.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started