| Lesson Plan | |
| Grade: | Date: 17/01/2026 |
| Subject: Computer Science | |
| Lesson Topic: Write pseudocode to handle text files that consist of one or more lines | |
Learning Objective/s:
|
|
Materials Needed:
|
Introduction: Start with a quick question: “How does a program get data from a file?” Connect this to prior learning about variables and loops. Explain that today’s success criteria are to write correct pseudocode for opening, processing, and closing a text file while handling EOF. |
Lesson Structure:
|
|
|
Conclusion: Recap the sequence: open → loop with EOF test → process → close, and remind students of the typical pitfalls. Collect exit tickets and assign homework: create pseudocode that reads a file of integers, calculates sum, average, and counts even numbers. |
|
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.