Professional Documents
Culture Documents
Villarojo Tfa2
Villarojo Tfa2
CCS0006L
(COMPUTER PROGRAMMING 1)
EXERCISE
2
PROGRAM LOGIC DESIGN AND FORMULATION
Section:
AM01
Sir MICHAEL RICAFRENTE
Professor:
Problem 1. A pseudocode and a flowchart that computes for the volume of rectangular prism.
Pseudocode Flowchart
● DISPLAY volume
● COMPUTE volume:= length x width x height
● ENTER length, width, height
Pseudocode Flowchart
(in correct order) (in correct order)
DISPLAY volume ↓
Pseudocode Flowchart
(in correct order) (in correct order)
ENTER number
IF num mod 2 = 1
ENDIF
Yes
No
Pseudocode Flowchart
● PRINT number
● WHILE number >= 1
● SET number = 10
● ENDWHILE
● DECREMENT number
Yes
No
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