0% found this document useful (0 votes)
20 views12 pages

Algoritm Pseudocode

An algorithm is a well-defined sequence of steps to solve a problem, pseudocode represents an algorithm using a programming-like structure in plain English before being implemented in an actual programming language, and a program is the final coded implementation in a specific programming language following its rules.

Uploaded by

Justine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views12 pages

Algoritm Pseudocode

An algorithm is a well-defined sequence of steps to solve a problem, pseudocode represents an algorithm using a programming-like structure in plain English before being implemented in an actual programming language, and a program is the final coded implementation in a specific programming language following its rules.

Uploaded by

Justine
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

ALGORITM & PSEUDOCODE

FLOWCHART AND PSEUDOCODE


• Algorithm : Systematic logical approach which is a well-
defined, step-by-step procedure that allows a computer to
solve a problem.
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.
Program : It is exact code written for problem following
all the rules of the programming language.
• Algorithm : Systematic logical approach which is a well-defined, step-by-
step procedure that allows a computer to solve a problem.
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.
Program : It is exact code written for problem following all the rules of the
programming language.
• An algorithm is defined as a well-defined sequence of
steps that provides a solution for a given problem,
whereas a pseudocode is one of the methods that can be
used to represent an algorithm.
• While algorithms are generally written in a natural
language or plain English language, pseudocode is
written in a format that is similar to the structure of a
high-level programming language. Program on the other
hand allows us to write a code in a particular
programming language.
INPUT PROCESS OUTPUT

SEND THE PRINTER


DATA TO PROCESS THE
DOCUMENT,
THE PRINTER
PRODUCE THE
THE COLOR
PROCESS, etc.
OUTPUT

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

Create a program that will display the sum of two numbers

• 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”

You might also like