Skip to content

Programming: subprograms

Download complete unit ↓(not available yet)

Why this, why now

In this unit pupils will be introduced to structured programming. They will explore the differences between functions and procedures and use functions to return values in programs. They will be introduced to the concept of scope and how parameters can be used to reduce the need for global variables.

Prior knowledge requirements

  • Ardaydu waa inay yaqaanaan aasaaska maadada.
  • Ardaydu waa inay awoodaan inay raacaan tilmaamo fudud.
Unit 10 / 16

Programming: subprograms

In this unit pupils will be introduced to structured programming. They will explore the differences between functions and procedures and use functions to return values in programs. They will be introduced to the concept of scope and how parameters can be used to reduce the need for global variables.

13 lessons
  1. Structured programs
  2. Procedures
  3. Structured programming
  4. Functions
  5. Functions in programs
  6. Global and local variables in programs
  7. Programming project: subprograms II
  8. Global and local variables
  9. Programming project: subprograms I
  10. Procedures in programs
  11. Programming project: subroutines II
  12. Programming project: subroutines I
  13. Creating an XOR function