As salam. mcm biase ar, clas harini start kol 10..masok kelas je..miss suruh buat exercises programing...
- exercises if else & switch case.
-ada 2 soalan..1 mesti kene siap kan ari ni..kalau tak miss tak kasi balik...kene lah siap kan jugak even buat pecah kpale...
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)
2. CALCULATE (IF...ELSE)
CALCULATE:
a) RECTANGULAR
b) TRIANGLE
c) CIRCLE
d) FAHRENHEIT
e) CELCIUS
Your Selection:
Your Selection is _________ and you are calculate _________. The answer is _____________
kumpulan kami berjaya siap kan ke2 2 soalan smpai tlebih lebih masa siap kan dlm kelas..weekly reflection tak lupa!.. yg penting blog kene complete kan (;
No comments:
Post a Comment