Monday, 28 March 2011

ASSIGNMENT 1 MESIN TIN MINUMAN (SWITCH...CASE)

1. MESIN TIN MINUMAN (SWITCH...CASE & IF...ELSE)

*************************
MESIN TIN MINUMAN
--------------------
1- PEPSI
2- COCA COLA
3- F&N MIRINDA
4- F&N ORANGE
5- 100 PLUS
*************************

Enter your drink:
Enter your money (RM):

Your drink is __________ and your balance are __________

*If the customer does not enter enough money, asked the customer to insert the money. (if...else)







No comments:

Post a Comment