Term: 2nd Term
Week: 7
Class: Senior Secondary School 2
Age: 16 years
Duration: 40 minutes of 2 periods each
Date:
Subject: Data Processing
Topic:- Algorithms and Flowcharts I
SPECIFIC OBJECTIVES: At the end of the lesson, pupils should be able to
INSTRUCTIONAL TECHNIQUES: Identification, explanation, questions and answers, demonstration, videos from source
INSTRUCTIONAL MATERIALS: Videos, loud speaker, pictures, Data Processing for senior Secondary Education by Hiit Plc, WAPB Computer Studies for Senior Secondary I by Adekunle et al, On-line Materials.
INSTRUCTIONAL PROCEDURES
PERIOD 1-2
PRESENTATION |
TEACHER’S ACTIVITY |
STUDENT’S ACTIVITY |
STEP 1 INTRODUCTION |
The teacher reviews the previous lesson on program development |
Students pay attention |
STEP 2 EXPLANATION |
He explains the meaning of algorithm and states the functions of algorithms
|
Students pay attention and participates |
STEP 3 DEMONSTRATION |
He further describes the characteristics of a good algorithm and explains the steps in writing one |
Students pay attention and participate |
STEP 4 NOTE TAKING |
The teacher writes a summarized note on the board |
The students copy the note in their books |
NOTE
ALGORITHMS AND FLOWCHARTS
ALGORITHM
An algorithm is a list of instructions that shows the steps or procedures to follow in order to solve a specific problem That is, it is designed to perform an operation which will lead to the desired result, if followed correctly. E.g. the steps followed tor baking a good cake, is the algorithm of cake making.
THE FUNCTIONS OF AN ALGORITHM
CHARACTERISTICS OF ALGORITHMS
GUIDELINES OR RULES FOR WRITING ALGORITHMS
To effectively write an algorithm that is practicable, the programmer or user needs to
Be conversant with the rules guiding the writing.
WRITING ALGORITHMS FOR PROBLEM SOLVING
To write an algorithm to calculate the average of two numbers and display
The result, the following steps are taken:
Step 1: Input the first number A
Step 2: Input the second number B
Step 3: Get C by adding A and B
Step 4: Get D by dividing C by 2 i.e. (C/2)
Step 5: Print out the result D
Step 6: Stop
Example 1: Using the algorithm above, calculate the average of 58 and 64.
Step 1: A = 58
Step 2: B = 64
Step 3: C = A+B = 58+ 64
Step 4: D = A+B/2 = 58 +64/2 = 122/2 = 61
Step 5: Print out D = 61
Step 6: Stop
Example 2: Evaluating the Equation Y = a(b -c)²/d+2.
Step 1: Get a, b, c, d
Step 2: Y=a*(b-c)²/d+2
Step 3: Y=a*(b-c)(b-c)/d+2
Step 4: Print out Y
Step 5: Stop
EVALUATION: 1. Explain the meaning of algorithm
Evaluate the equation below.
Y= a(b-c)²/d+2
CLASSWORK: As in evaluation
CONCLUSION: The teacher commends the students positively