M1 Formative
M1 Formative
CCS0006L
(COMPUTER PROGRAMMING 1)
EXERCISE
1
FAMILIARIZATION OF C++ ENVIRONMENT
Section:
TW03
Professor:
Ms. Marie Luvette Goh
I. PROGRAM OUTCOME/S (PO) ADDRESSED BY THE LABORATORY EXERCISE
Apply knowledge through the use of current techniques and tools necessary for the IT profession. [PO: I]
Problem 1. Create a project named digits then create a program that asks a user a 3-digit number and
displays the hundreds, tens and ones digits of the inputted number.
Block of Codes Block of Codes
(in correct order)
A.
C
F
B. E.
B
D
C.
A
D.
E.
F.
Problem 2. Create a project named swap then create a program that swaps the two numbers entered
by the user.
Block of Codes Block of Codes
(in correct order)
A.
F
D
B
B. C
G
E.
A,
C.
E.
F.
G.
Problem 3. Create a project named leap then create a program that identifies whether the inputted year
is a leap year or not.
Block of Codes Block of Codes
(in correct order)
A.
C
D
A
E
B
C.
D.
E.