COMP 002 - Reviewer - Programming Concepts
COMP 002 - Reviewer - Programming Concepts
PROBLEM #1
● PSEUDOCODE
LGORITHMS ECONDS
A
s ec←0 times ec←0 timemi n←0 timehr←0
OUTPUT “Pl ea s e enter the number of s econd/s : ”
I NPUT s ec
timehr ← s ec / 3600
timemi n ← (s ec % 3600) / 60
times ec ← (s ec % 3600) % 60
OUTPUT “Hour/s : ”, timehr
OUTPUT “Mi nute/s : ”, timemi n
OUTPUT “Second/s : ”, time s ec
OUTPUT “The time i s ”,timehr,“:”,timemi n,“:”,times ec“.”
ENDS ECONDS