M2 Formative
M2 Formative
CCS0006L
(COMPUTER PROGRAMMING 1)
EXERCISE
2
PROGRAM LOGIC DESIGN AND FORMULATION
Student Name /
Group Name:
Name Role
Jorell Andrei Finez
Members (if Group):
Joana Ester Reyes
Section:
TW03
Professor:
Marie Luvett 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]
Pseudocode Flowchart
(in correct order) (in correct order)
volume = length x
width x height
OUTPUT
volume
END
Problem 2. A pseudocode and a flowchart that determines whether the number entered
is an odd number or not.
Pseudocode Flowchart
Pseudocode Flowchart
(in correct order) (in correct order)
ENTER number
IF number mod 2 = 1 INPUT
THEN number
DISPLAY “It is odd.”
ELSE
DISPLAY “It is not odd.”
ENDIF Is
FALSE OUTPUT
number
mod 2 = “It is not
1? odd.”
TRUE
A
OUTPUT
“It is odd.”
A
END
Pseudocode Flowchart
Pseudocode Flowchart
(in correct order) START
(in correct order)
Is FALSE
number END
>= 1?
TRUE
OUTPUT
number
number = number - 1
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