Question: design the process that Mr . Espresso 3 0 0 0 follows to create the perfect cup of joe using the following possible set of

design the process that Mr. Espresso 3000 follows to create the perfect cup of joe using the following possible set of actions and logic
{Obtain Input from User,
Make SMALL Cup, Make MEDIUM Cup, Make LARGE Cup,
Set to ESPRESSO Mode, Set to DARK ROAST Mode, Set to BREAKFAST Mode,
HOW MANY OUNCES?}
Imagine that the coffee machine has a keypad to enter numbers and change settings. At some points, some steps require user input to have been entered. If so, when needs to be input? What sort of actions are non-interactive? Will all the actions always be used to make a cup of coffee? Think about possible if/else statements Mr. Espresso 3000 should have.
Requirements:
You are free to be creative in this assignment (and must be for full points). You are at least required to do the following with a loop:
1. Create a variable called "coffee_in_cup" or something similar.
2. The user will input what size of cup they want.
3. The user will input how many ounces of coffee they want in total.
4. As the machine pours coffee into the cup, "coffee_in_cup" should increase to represent the new amount in the cup. Create a loop. On every iteration, 1 ounce is added and the current state of "coffee_in_cup" should be printed to the user.
5. If "coffee_in_cup" exceeds the size of the cup (for example, 10 ounces for a large cup) then the cup spills over and it should be printed to the user.
6. Otherwise, print that the pouring process is complete.
in python!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!