Professional Documents
Culture Documents
Lab Task 2
Lab Task 2
Learning Outcomes
Write a programme that can receive input 0 to 9 (integer number), then print it in words. Use if..else if
and switch..case structure.
Example :
Input : 5
Output : FIVE
Create an easy math training system for children. The program request the input of two integer
number and then ask the addition result from user. If the addition answer from user is correct, the
message “CORECT….” will display. If not, the correct answer will be display.
Based on the following table, build a system to calculate and display the ticket price based on
passenger age, city code and how many passenger input. Bus will depart from Kuala Lumpur to
other cities.
1|Page
Contoh Interaksi output:
2|Page