Q2 W6 D2 Algorithm
Q2 W6 D2 Algorithm
OBJECTIVES:
• Define flowchart.
• Identify the different symbols
use in flow chart.
• Identify the advantages of
flowchart.
• 4. Cite examples of
algorithm using flowchart.
FLOW CHART
A graphical representation of a
computer program in relation to its
sequence of functions.
It is a diagram that shows the
sequence of steps or actions needed to
perform a process.
Flow chart use special shapes or
symbols to represent different types of
actions or steps in a process.
It is a diagram which visually presents
the flow of data through processing
systems. This means by seeing a flow chart
one can know the operations performed
and the sequence of these operations in a
system.
A flowchart, will describe the
operations (and in what sequence) are
required to solve a given problem. You can
see a flow chart as a blueprint of a design
you have made for solving a problem.
NAME SYMBOL FUNCTION
Sequential
END
two numbers. B
summation is A,
print “Correct”,
otherwise print Print
“Correct
Print
“Wrong
“Wrong”. A = 10 ” ”
END
START
EXAMPLES
Problem 4: Integer count
3 Hello World F
5
ADVANTAGES OF USING FLOW
CHART
Algorithm A
Add 4 to 5
Print the result
Algorithm B
Ask the user to type in a whole number
Add 5 to that number
Print the result
Algorithm C
If 4 is less than 5
Add 5 to 4
Print the result Otherwise Print "no“
Algorithm D
Ask the user to type in a whole number
If the number typed in is less than 5
Add 5 to the number typed in
Print the result Otherwise Print "no"
Referenc
es
https://www.visual-paradigm.com/tutorials/flowchart-tutorial
/
https://creately.com/blog/diagrams/flowchart-guide-flowchart
-tutorial/
Thank you!