0% found this document useful (0 votes)
348 views7 pages

CCS0006L (Computer Programming 1) : Exercise

This document contains instructions for a computer programming laboratory exercise. The exercise addresses applying programming knowledge and solving computing problems using design tools. Students are directed to arrange programming statements into pseudocode and flowchart symbols to solve three problems: 1) computing the volume of a rectangular prism, 2) determining if a number is odd or even, and 3) printing numbers from 10 to 1 using a while loop. The document provides example pseudocode and flowcharts for the students to complete correctly. References for additional programming resources are also included.
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)
348 views7 pages

CCS0006L (Computer Programming 1) : Exercise

This document contains instructions for a computer programming laboratory exercise. The exercise addresses applying programming knowledge and solving computing problems using design tools. Students are directed to arrange programming statements into pseudocode and flowchart symbols to solve three problems: 1) computing the volume of a rectangular prism, 2) determining if a number is odd or even, and 3) printing numbers from 10 to 1 using a while loop. The document provides example pseudocode and flowcharts for the students to complete correctly. References for additional programming resources are also included.
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/ 7

COLLEGE OF COMPUTER STUDIES AND MULTIMEDIA ARTS

CCS0006L
(COMPUTER PROGRAMMING 1)

EXERCISE

2
PROGRAM LOGIC DESIGN AND FORMULATION

Student Name / Group Maria Nazarene R. Romano


Name:
Name Role
Members (if Group):

Section:
Teodoro Jr. Revano
Professor:
A
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:
 Identify and describe the symbols used in flowcharting
 Identify and apply the convention in creating pseudocodes
 Design algorithms that solves a problem using pseudo code and flowcharts.

IV. LABORATORY EXERCISE


Directions: Arrange the statements to form the pseudocode and put in order the symbols in the flowchart
that will satisfy the given problem specification. Put your final answers in the box.

Problem 1. A pseudocode and a flowchart that computes for the volume of rectangular prism.
Pseudocode Flowchart
START OUTPUT
 DISPLAY volume
volume
 COMPUTE volume:= length x width x height
END
 ENTER length, width, height
volume = length INPUT
x width x height length, width,
height

Pseudocode Flowchart
(in correct order) (in correct order)
START A
 ENTER length, width, height
 COMPUTE volume:= length x width x
height END INPUT
length, width,
 DISPLAY volume
height

CCS0003L-Computer Programming 1 Page 2 of


7
Problem 2. A pseudocode and a flowchart that determines whether the number entered is an odd
number or not.
Pseudocode Flowchart
START OUTPUT
 THEN DISPLAY “It is odd.”
“It is odd.”
 ENTER number
END
 ENDIF
 IF num mod 2 = 1 OUTPUT
 ELSE DISPLAY “It is “It
notisodd.”
not odd.”
Is
num mod 2
= 1? INPUT
number

Pseudocode Flowchart
(in correct order) (in correct order)
 ENTER number
START
 IF num mod 2 = 1

INPUT
CCS0003L-Computer Programming 1 Page 3 of
7 number

false
 THEN DISPLAY “It is odd.”
 ELSE DISPLAY “It is not odd.”
 ENDIF

False
Is
num mod OUTPUT
2 = 1? “It is odd”

True
A
OUTPUT
“It is not
odd”

END

Problem 3. A pseudocode and a flowchart that prints the numbers 1 to 10 in descending order using
WHILE.

CCS0003L-Computer Programming 1 Page 4 of


7
Pseudocode Flowchart
START
 PRINT number
number = 10
 WHILE number >= 1
END
 SET number = 10
 ENDWHILE
 number = number - 1
DECREMENT number
Is
number >=
1? OUTPUT
number

Pseudocode Flowchart
(in correct order) (in correct order)

CCS0003L-Computer Programming 1 Page 5 of


7
START
 SET number = 10
 WHILE number >= 1
 DECREMENT number
 ENDWHILE
number = 10
 PRINT number

FALSE

Is
number >= END
1?

TRUE

OUTPU
T
number

number=number-
1

CCS0003L-Computer Programming 1 Page 6 of


7
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://naveenkandwal.blogspot.com/2014/01/flowchart_18.html

CCS0003L-Computer Programming 1 Page 7 of


7

You might also like