You are on page 1of 1

COMSATS Institute of Information Technology

Abbottabad
Object Oriented Programming Assignment Number 1
Instructor: Mr. Fuzel Jamil Due Date: 15 march 2016

Design a Coffee Vending Machine application that displays the list of available Coffee drinks listed by
size and price as shown below.
The Great Coffe Vending Machine
Choice: Size: Cost:
Latte Small 100 rs
Latte Medium 150 rs
Latte Large 200 rs
Cappuccino Small 150 rs
Cappuccino Medium 200 rs
Cappuccino Large 250 rs
Espresso Small 200 rs
Espresso Medium 250 rs
Espresso Large 300 rs
Please provide a choice and select size accordingly:

The user should then provide a choice whereby another prompt is to be made asking for required order
size. If a wrong choice is made, the menu should be redisplayed. (Example shown below)

Please provide a choice and select size accordingly:


Cappucino
You Selected Cappuccino!!!
Which size would you like?
Small
After the selection of choice, the total amount to be paid should be displayed:

You selected a Small sized Cappuccino, Please pay amount rs 150.


The user should be able to provide required amount and receive a thank you message after successful
payment. If payment amount is less than what is required, he should be prompted accordingly
displaying the remaining amount to be paid. If paid amount is greater, a message should be displayed
stating amount in change.
Ensure amount received is exactly what owed, no more or less. If amount is paid successfully, A Thank
You message should be displayed.

You might also like