Lesson Plan

Lesson Plan
Grade: Date: 25/02/2026
Subject: Information Communication Technology ICT
Lesson Topic: Know and understand validation routines including range check, character check, length check, type check, format check, presence check, check digit
Learning Objective/s:
  • Describe the purpose and typical use of each validation routine (range, character, length, type, format, presence, check digit).
  • Explain how validation fits into the analysis, design, implementation, testing, deployment and maintenance phases of the systems life cycle.
  • Apply basic validation logic using pseudo‑code or simple programming constructs to sample data.
  • Evaluate sample data entries to identify and correct validation errors.
Materials Needed:
  • Projector and screen
  • Whiteboard and markers
  • Computers with an IDE (e.g., VS Code)
  • Sample data worksheets (age, postcode, ISBN, etc.)
  • Printed handouts of the validation routine summary table
  • Internet access for regex demonstrations
Introduction:

Start with a quick poll: how many students have entered incorrect data into an online form? Review that data errors can cause system failures and connect this to previous lessons on data quality. Explain that today’s focus is on the key validation routines that prevent such errors, and success will be measured by correctly applying each routine in a coding activity.

Lesson Structure:
  1. Do‑now (5') – Short quiz identifying invalid entries in sample forms.
  2. Mini‑lecture (10') – Overview of each validation routine with real‑world examples and pseudo‑code.
  3. Guided practice (15') – In pairs, students write simple validation code for given scenarios using the IDE.
  4. Whole‑class debugging (10') – Share code, test edge cases, discuss common mistakes.
  5. Systems life‑cycle mapping (10') – Groups place each validation routine into the appropriate SLCT phase on a poster.
  6. Exit ticket (5') – Students list two validation checks they will use in their upcoming project.
Conclusion:

Recap that validation routines safeguard data integrity throughout the system life cycle. Invite a few students to share one new insight they gained. Collect exit tickets and assign homework to implement three different validation checks in a simple form for their next project.