Algoritm Pseudocode
Algoritm Pseudocode
PRINTER
SEND APPLICATION,
INTERVIEWS,
HIRED, NOT
RESUME EXAM
HIRE
IKAW,
CRUSH COURTSHIP BUSTED
MO
VARIABLES
• MATH
• NUMBER THAT CAN REPRESENT ANY NUMBER
• PROGRAMMING
• A LETTER/ WORD THAT SERVE AS TEMPORARY STORAGE
THAT CAN REPRESENT ANY VALUE
PROGRAMMING PROBLEM
• ALGORITHM:
• DECLARE 3 VARIABLES, 2 FOR THE ADDENDS AND 1 FOR THE SUM
• Let the user input the addends and assign the sum
• Perform the addition between the addends and assign it to the sum
• Display the SUM
• Pseudocode : It is a simpler version of a programming code in plain
English which uses short phrases to write code for a program before it is
implemented in a specific programming language.
• Pseudocode is fake (not the real thing). It looks like (imitates) real code but it
is NOT real code. It uses English statements to describe what a program is to
accomplish. It is fake because no compiler exists that will translate the
pseudocode to any machine language
RULES IN CREATING PSEUDOCODE
• Let NumOne = 0, NumTwo = 0 and Sum = 0
• Input NumOne and NumTwo
• Sum = NumOne + NumTwo
• Output Sum
CREATE PROGRAM THAT WILL DISPLAY
EVEN OR ODD DEPENDING ON INPUTED BY
THE USER
• Let num = 0
• Input num
• IF num is an even number
• Output “even”
• If num is an odd number
• Output “odd”