Professional Documents
Culture Documents
Lab Exer 2 Jun 2017
Lab Exer 2 Jun 2017
Instruction: You have to write a complete C++ program using program control structure. Submit the
answers on 18/09/2017 (Monday) before 3 pm, in softcopy and hardcopy.
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.
(5 marks)
Question 2 (CLO2, C3)
Write a C++ program that prompts the user to input three integer values and find the
greatest value of the three values.
(5 marks)
Question 2 (CLO3, C3)
Write a C++ program to print the output as the below. Use Switch case and do…while
control structure to perform the task.
(20 marks)
~Good Luck~