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 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 noninteractive? Will all the actions always be used to make a cup of coffee? Think about possible ifelse statements Mr Espresso 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:
Create a variable called "coffeeincup" or something similar.
The user will input what size of cup they want.
The user will input how many ounces of coffee they want in total.
As the machine pours coffee into the cup, "coffeeincup" should increase to represent the new amount in the cup. Create a loop. On every iteration, ounce is added and the current state of "coffeeincup" should be printed to the user.
If "coffeeincup" exceeds the size of the cup for example, ounces for a large cup then the cup spills over and it should be printed to the user.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
