Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 1

DEPARTMENT OF INFORMATIONAND COMMUNICATION TECHNOLOGY

DFC2073 : PROGRAMMING FUNDAMENTALS

LABORATORY TASK 2: PROGRAM CONTROL STRUCTURE


QUESTONS

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.

Question 1 (CLO2, C3)

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~

You might also like