SUBJECT: I.C.T.
CLASS:� SS 2
DATE:
TERM: 2nd TERM
�
�
WEEK 8
TOPIC: ALGORITMS AND FLOWCHARTS
Algorithm is the step by step procedure of solving a particular problem. It is simply a sequence of clear and precise instructions for solving a particular problem. Algorithms are usually written in English and some few mathematical notations (signs, symbols)
Characteristics of Algorithms
�
Example
An algorithm to calculate average of three numbers:
Step1: Enter the first number N1
Step2: Enter the second number N2
Step3: Enter the third number N3
Step4: Calculate the total (N1+N2+N3)
Step5: Calculate the average (N1+N2+N3)/3
Step6: Print total
Step7: Print Average
Step8: End
�
Flowcharts
The flowchart is the diagrammatic representation of an algorithm. It shows the steps involved in solving a particular task.
�
Characteristics of flowchart
Different flowcharting symbols are used for different operations
Flow lines are used to connect the flowcharting symbols.
Flowcharts are read and drawn from top to bottom.
The start symbol indicates the beginning of a program.
The end symbol signifies the end of a program.
Flowchart symbols:
�
Process
Terminator
Flow line
Decision (control)
Input/output
Connector
�
Pre-defined process/declaration
Preparation
�
Reading Assignment: Reading Assignment:�
Hiit @ School, Computer Studies for Senior Secondary Education. Pgs 108 - 109
WEEKEND ASSIGNMENT
OBJECTIVE
�
�
�
�
��� �
THEORY
� Lesson Notes All Rights Reserved 2023