You are on page 1of 13

INTRODUCTION TO FLOWCHART

TODAY’S OBJECTIVES

1. Define the term “flowchart”

1. Identify the symbols use to represent information within a flowchart

1. Construct a flowchart to represent a simple problem


FLOWCHART

Flowchart is a graphical representation of an algorithm. They use


a set of symbols with the pseudocode statements in each symbol.
FLOWCHART SYMBOLS
TERMINATOR

Used to Start and Stop a flowchart.


PROCESS

Used for calculations, declaration and initialization statements.


DECISION

Used for conditions in decision making.


INPUT/OUTPUT

Used for input and output statements.


DATA FLOW/FLOW LINE

Used to show the flow of data/processes in the flowchart.


CONNECTOR

Used for joining parts of a flowchart together or join part


of a flowchart from one page to another.
Class Activity

Construct a flowchart for the following question:

Write a structured algorithm to prompt the user to enter the length of a


square. Calculate the area of the square and output it with a suitable label.
Solution
Pseudocode
Flowchart
{Created by 4th Form on 25/10/2021}
Start
Algorithm Square
VAR Length : Real
VAR Area : Real
Length : Real
Area : Real
Length ← 0.0
START Area ← 0.0

Length ← 0.0
Area ← 0.0 Print ‘Enter the length of a square’

Print ‘Enter the length of a square’


Read Length
Read Length
Area ← Length * Length

Print ‘The area is’, Area Area ← Length * Length

STOP
Print ‘The area is’, Area

Stop
Class Activity

Draw a flowchart to ask the user to enter two numbers. Find the sum of the
two numbers and output it.

You might also like