Skip to content

4. Control Structures and Validation

This section focuses on making programs behave correctly when users provide input.

Combines

  • sequence
  • selection
  • iteration or repetition
  • existence checking
  • type checking
  • range checking

Why these belong together

Once students are handling input and decision-making, validation becomes a natural extension of control structures rather than a separate theory-only topic.

Good folio-style tasks

  • build a login or menu-driven program
  • create a loop that keeps asking for valid input
  • validate ages, scores or menu choices
  • compare different validation checks and explain why each is needed

Key skills supported

  • develop a software solution using control structures
  • design and apply suitable validation techniques