Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
100% found this document useful (1 vote)
312 views

Information Technology Grade 10

The document discusses algorithms and flowcharts. An algorithm is a sequence of instructions to solve a problem in a finite amount of time. Flowcharts use standard symbols like ovals, rectangles, and parallelograms to visually represent the steps in an algorithm. Two examples are given: one that averages two input numbers, and another that adds two numbers and displays the result. Both examples show the algorithm and corresponding flowchart using the standard symbols.

Uploaded by

Candice Thomas
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
312 views

Information Technology Grade 10

The document discusses algorithms and flowcharts. An algorithm is a sequence of instructions to solve a problem in a finite amount of time. Flowcharts use standard symbols like ovals, rectangles, and parallelograms to visually represent the steps in an algorithm. Two examples are given: one that averages two input numbers, and another that adds two numbers and displays the result. Both examples show the algorithm and corresponding flowchart using the standard symbols.

Uploaded by

Candice Thomas
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like