| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Explain where in the construction of an algorithm it is appropriate to use a function | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Begin with a quick poll: “How many of you have written the same block of code more than once?” Discuss how repetition can make programs harder to read. Today we will learn how to spot the right moment to extract a function, and you will be able to show a cleaner algorithm by the end of the lesson. |
Lesson Structure:
|
|
|
Conclusion: Summarise that functions should be added during design when a task is distinct, repeated, or needs abstraction, and that they aid testing and maintenance. Ask students to write one function for tomorrow’s homework and share their code snippet on the class forum. Collect exit tickets and remind them to review the function‑design checklist before the next lesson. |
|
Your generous donation helps us continue providing free Cambridge IGCSE & A-Level resources, past papers, syllabus notes, revision questions, and high-quality online tutoring to students across Kenya.