Term: 3rd Term
Week: 5
Class: Senior Secondary School 2
Age: 16 years
Duration: 40 minutes of 2 periods each
Date:
Subject: Computer studies and ICT
Topic:- Algorithms and Flowcharts II
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 II 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 algorithms |
Students pay attention |
STEP 2 EXPLANATION |
He explains the characteristics of a good algorithm
|
Students pay attention and participates |
STEP 3 DEMONSTRATION |
He further describes 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.
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.
1. Define the Term Algorithm: At the beginning of the program, give a brief definition of the term algorithm.
2. Define the Problem: Give a name to the algorithm and define the problem it is meant to solve i.e. the aim.
3. Designing an Algorithm: This can be done using the steps below
4. Check the Correctness of Algorithm: Implement the algorithm through program testing i.e. use test data.
5. Documentation Preparation: Document all that has been done.
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. What are the characteristics of a good algorithm?
Evaluate the equation below.
Y= a(b-c)²/d+2
CLASSWORK: As in evaluation
CONCLUSION: The teacher commends the students positively