Instruction
Example Output 1 (user input is in green)
Welcome to the Lemonade Stand, what is your name?
Amanda
Hi Amanda, how many glasses of lemonade would you like? They are $1.75 each
2
Each glass costs $1.75, so the total due is $3.50.
How will you be paying today?
G
Sorry, invalid payment type. Try again:
C
Credit card transaction.
There will be a $0.50 fee for using Credit Card. Your new total is $4.00.
Would you like to run the program again? (Yes or no):
No
Thanks and have a nice day!
Example Output 2 (user input is in green)
Welcome to the Lemonade Stand, what is your name?
Amanda
Hi Amanda, how many glasses of lemonade would you like? They are $1.75 each
2
Each glass costs $1.75, so the total due is $3.50.
How will you be paying today?
A
Sorry, invalid payment type. Try again:
B
Sorry, invalid payment type. Try again:
E
No lemonade for you, goodbye!
Example Output 3 (user input is in green)
Welcome to the Lemonade Stand, what is your name?
Amanda
Hi Amanda, how many glasses of lemonade would you like? They are $1.75 each
2
Each glass costs $1.75, so the total due is $3.50.
How will you be paying today?
C
Credit card transaction.
There will be a $0.50 fee for using Credit Card. Your new total is $4.00.
Would you like to run the program again? (Yes or no):
Yes
Welcome to the Lemonade Stand, what is your name?
Joe
Hi Joe, how many glasses of lemonade would you like? They are $1.75 each
1
Each glass costs $1.75, so the total due is $1.75.
How will you be paying today?
M
Money transaction.
Would you like to run the program again? (Yes or no):
No
Thanks and have a nice day!