Lesson Plan

Lesson Plan
Grade: Date: 17/01/2026
Subject: Computer Science
Lesson Topic: Write pseudocode statements for: the assignment of values to variables
Learning Objective/s:
  • Describe the purpose and syntax of assignment statements in pseudocode.
  • Apply naming conventions and data‑type rules when creating variables.
  • Write correct pseudocode assignments for integers, reals, strings, and booleans.
  • Evaluate expressions and use operators correctly within assignment statements.
  • Identify and correct common errors in pseudocode assignments.
Materials Needed:
  • Projector or interactive whiteboard
  • Printed handout with variable‑naming rules and examples
  • Whiteboard and markers
  • Student laptops or computers with a pseudocode editor
  • Practice worksheet with assignment exercises
  • Sticky notes for exit tickets
Introduction:
Begin with a quick real‑world analogy: assigning a locker number to a student demonstrates how a value is stored in a variable. Review the previous lesson on data types and ask students to recall the difference between integers and strings. Explain that today’s success criteria are to write syntactically correct pseudocode assignments and to avoid common pitfalls such as using the wrong operator.
Lesson Structure:
  1. Do‑now (5') – Students write a short definition of an assignment and list the assignment operator (:=). Teacher circulates and checks understanding.
  2. Mini‑lecture (10') – Review variable naming rules, data types, and the := syntax using projector slides and board examples.
  3. Guided practice (12') – Construct several assignment statements together (integer, real, string, boolean) while discussing type compatibility.
  4. Independent worksheet (15') – Students complete the five practice exercises, writing full pseudocode fragments. Teacher provides immediate feedback.
  5. Peer review (8') – Pairs exchange worksheets and use a checklist to spot common mistakes (wrong operator, type mismatch, missing initialization).
  6. Quick quiz (5') – Exit ticket: write a single line that assigns the product of length and width to area using correct syntax.
Conclusion:
Summarise that a correct assignment stores a value using := and must respect naming and type rules. Invite a few students to share an error they corrected during peer review. Collect exit tickets as a retrieval check and assign a short homework task to write three additional assignment statements of their choice.