Writing An Algorithm, Pseudocode, and Flowchart
Writing An Algorithm, Pseudocode, and Flowchart
PSEUDOCODE, AND
FLOWCHART
SOLVING PROGRAMMING PROBLEMS
Programming
• A process of problem
solving.
Source Code
• Human instructions for the
computer
PROCESS IN SOLVING PROGRAMMING
LANGUAGE
Problem • Identify the problem
Analysis
• Analyze the problem to identify
possible solutions.
Output •Result
WHAT IS A FLOWCHART?
• TERMINATOR
Beginning and the end of
the flowchart (“Start” and
“End”)
BASIC SYMBOL USED IN FLOWCHARTING
• INPUT/OUTPUT
Used if the flowchart needs
input from the user or output
from the process
BASIC SYMBOL USED IN FLOWCHARTING
• PROCESS
Used to process data
Normally composed of
mathematical symbols
BASIC SYMBOL USED IN FLOWCHARTING
• ARROWS
Shows the flow of the
Process
DRAWING A FLOWCHART
START
Input Lft
Print Lft
WHAT IS A PSEUDOCODE?
START
Input Lft
Print Lft
END
WRITING THE PSEUDOCODE
•Step 1: Input a, b, c
•Step 2: A = a+b+c/3
•Step 3: Display A
DRAWING A FLOWCHART
START
Input a, b, c
A = a+b+c/3
Display A
END
WRITING THE PSEUDOCODE
•Step 1:
•Step 2:
•Step 3:
•Step 4:
WRITING THE PSEUDOCODE
•Step 1:
•Step 2:
•Step 3:
•Step 4: