C O F F E E M A C H I N E M E N U
---------------------------------------
prices:
espresso ..................... $1.50
latte ........................ $2.50
cappuccino ................... $3.00
What would you like? (espresso/latte/cappuccino):
> c
A cappuccino costs $3.00
Please insert some coins.
$ 3.00: How many quarters? 6
$ 1.50: How many dimes? 10
$ 0.50: How many nickles? 20
Here is your $0.50 change
creating a fresh cappuccino masterpiece.
( ( (
) ) )
........
| |]
\ /
`----'
Enjoy your coffee and have a great day
C O F F E E M A C H I N E M E N U
---------------------------------------
prices:
espresso ..................... $1.50
latte ........................ $2.50
cappuccino ................... $3.00
What would you like? (espresso/latte/cappuccino):
> e
A espresso costs $1.50
Please insert some coins.
$ 1.50: How many quarters? 23
Here is your $4.25 change
creating a fresh espresso masterpiece.
( ( (
) ) )
........
| |]
\ /
`----'
Enjoy your coffee and have a great day
C O F F E E M A C H I N E M E N U
---------------------------------------
prices:
espresso ..................... $1.50
latte ........................ $2.50
cappuccino ................... $3.00
What would you like? (espresso/latte/cappuccino):
> l
Sorry there is not enough waterto make a latte.
Please select something else.
C O F F E E M A C H I N E M E N U
---------------------------------------
prices:
espresso ..................... $1.50
latte ........................ $2.50
cappuccino ................... $3.00
What would you like? (espresso/latte/cappuccino):
> r
C O F F E E M A C H I N E R E P O R T
-------------------------------------------
resources available:
water ....................... 0ml
milk ........................ 100ml
coffee ...................... 58g
money ....................... $4.50
C O F F E E M A C H I N E M E N U
---------------------------------------
prices:
espresso ..................... $1.50
latte ........................ $2.50
cappuccino ................... $3.00
What would you like? (espresso/latte/cappuccino):
>
aclaughan / coffee-machine Goto Github PK
View Code? Open in Web Editor NEWyour own private coffee machine