0% found this document useful (0 votes)
38 views

M1 Formative

This document outlines a laboratory exercise for a Computer Programming 1 course. The exercise aims to familiarize students with creating a C++ programming environment. It provides 3 programming problems of increasing complexity - displaying number digits, swapping numbers, and identifying leap years - for students to solve by arranging code blocks in the correct order. The solutions are to be coded in Visual Studio C++, built, run and outputs pasted along with the programs. References for further reading on C++ programming are also included.

Uploaded by

Chianti Gaming09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

M1 Formative

This document outlines a laboratory exercise for a Computer Programming 1 course. The exercise aims to familiarize students with creating a C++ programming environment. It provides 3 programming problems of increasing complexity - displaying number digits, swapping numbers, and identifying leap years - for students to solve by arranging code blocks in the correct order. The solutions are to be coded in Visual Studio C++, built, run and outputs pasted along with the programs. References for further reading on C++ programming are also included.

Uploaded by

Chianti Gaming09
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 6

COLLEGE OF COMPUTER STUDIES AND MULTIMEDIA ARTS

CCS0006L
(COMPUTER PROGRAMMING 1)

EXERCISE

1
FAMILIARIZATION OF C++ ENVIRONMENT

Student Name / Group


Name:
Name Role
Joana Ester Reyes
Members (if Group):
Jorell Andrei Finez

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]

II. COURSE LEARNING OUTCOME/S (CLO) ADDRESSED BY THE LABORATORY EXERCISE


 Solve computing problems using design tools that meets specific requirements. [CLO: 1]

III. INTENDED LEARNING OUTCOME/S (ILO) OF THE LABORATORY EXERCISE


At the end of this exercise, students must be able to:
 Familiarize an environment in creating a C++ program
 Create a simple program, compile and run it.

IV. LABORATORY EXERCISE


Directions: Arrange the block of codes to form the C++ program that will satisfy the given problem
specification. Encode your answer in Visual Studio C++ then build and run. Paste your C++ program in
Visual C++ Program column and the sample output in the Output column.

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.

CCS0003L-Computer Programming 1 Page 2 of


6
Visual C++ Program Output

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.

CCS0003L-Computer Programming 1 Page 3 of


6
D.

E.

F.

G.

Visual C++ Program Output

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

CCS0003L-Computer Programming 1 Page 4 of


6
B.

C.

D.

E.

Visual C++ Program Output

CCS0003L-Computer Programming 1 Page 5 of


6
V. REFERENCES
 Abraham (2015). Coding for dummies. John Wiley and Sons: Hoboken, NJ
 Zak, D (2015). An Introduction to Programming with C++. 8th Edition
 Cadenhead, R et. Al. (2016). C++ in 24 Hours, Sams Teach Yourself (6th Edition).Sams Publishing
 McGrath, M. (2017). C++ programming in easy steps (5th ed.). Warwickshire, United Kingdom: Easy
Steps Limited
 Tale, T. (2016). C++: The Ultimate Beginners Guide to C++ Programing. CreateSpace Independent
Publishing Platform
 http://cs.uno.edu/~jaime/Courses/2025/devCpp2025Instructions.html

CCS0003L-Computer Programming 1 Page 6 of


6

You might also like