0% found this document useful (0 votes)
5K views

Flow

Uploaded by

api-297910907
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5K views

Flow

Uploaded by

api-297910907
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Drawing Flowcharts

Recapitulation
• Remember that an algorithm may be represented as pseudocode,
flowchart or narrative.
• In lesson 4 we learnt how to write a pseudocode. Today we will learn
how to draw a flow chart.
What is a flowchart?
• A flowchart is a diagrammatic or pictorial representation of the
solution to a problem.

• Lets learn about flowchart symbols.


Basic Flow Chart Symbols
Name

Oval
Symbol Use in Flowchart

Denotes the beginning or end of the program

Name Symbol Use in Flowchart

Parallelogram Denotes an input operation


Oval Denotes the beginning or end of the program

Rectangle Denotes a process to be carried out


Parallelogram e.g.Denotes
addition, subtraction, division etc.
an input operation
as well as an output operation

Diamond Denotes a decision (or branch) to be made.


Rectangle Denotes a process to be carried out
The program should continue along one of
e.g. addition, subtraction, division etc.
two routes. (e.g. IF/THEN/ELSE)

Diamond Denotes a decision (or branch) to be made.


Hybrid Denotes an outputshould
The program operation
continue along one of
two routes. (e.g. IF/THEN/ELSE)

Flow line Denotes the direction of logic flow in the program


Hybrid Denotes an output operation

Flow line Denotes the direction of logic flow in the program


Let’s Examine our algorithm from Lesson 4
START
• Declare price as REAL
• Declare Quantity as INTEGER
• Declare Total Price as REAL We do not declare variables
neither do we write prompt
statements in Flowcharts.
PRINT “Enter the quantity”
INPUT quantity
PRINT “Enter the price”
INPUT price
Total_Price=Price*Quantity
PRINT “The total price is”, Total_Price
STOP
Lets Draw the Flow Chart
START

INPUT
Price

INPUT
Quantity

Total_Price=Price*
Quantity

PRINT
Total_Price

STOP
Activity 1
• Draw a flow chart that accepts 4 grades and print the average.

You might also like