INFORMATION TECHNOLOGY
Grade 10
Topic: Problem Solving and Program Design
Sub-topic: Algorithm (Flowchart)
Teacher: Ms. C. Thomas
An algorithm is a sequence of precise instructions which, if followed, produces a solution to a
given problem in a finite amount of time.
Algorithms can be represented using pseudocode or a flowchart. A flowchart uses
geometrical objects. Flowchart is a graphical representation of sequence of steps to solve a
problem. To draw a flowchart the following standard symbols are used
Problem statement: Accept 2 numbers. Average them. Display the result
Algorithm average_1
DECLARE num1, num2, sum, average as INTEGERS Flowchart Symbol Used
START OVAL (Start)
PRINT "Enter the first number: " PARALLELOGRAM (Output)
READ num1 PARALLELOGRAM (Input)
PRINT "Enter the second number:" PARALLELOGRAM (Output)
READ num2 PARALLELOGRAM (Input)
sum = num1 + num2 RECTANGLE (Processing)
PRINT "The sum of the numbers is " sum PARALLELOGRAM (Output)
average = sum/2 RECTANGLE (Processing)
PRINT "The average of the numbers is " average PARALLELOGRAM (Output)
STOP OVAL (Stop)
Problem statement: Add two numbers and display the result
START
Algorithm addition
PRINT "Enter the
first number"
Declare num1, num2, result as INTEGERS
START READ num1
PRINT "Enter the first number "
READ num1 PRINT "Enter the
PRINT "Enter the second number " second number"
READ num2
READ num2
result=num1 + num2
PRINT "The sum of the numbers is " result
result = num1 + num2
STOP
PRINT "The sum of
the numbers is" result
STOP