Programming: subprograms
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- Structured programs
- Procedures
- Structured programming
- Functions
- Functions in programs
- Global and local variables in programs
- Programming project: subprograms II
- Global and local variables
- Programming project: subprograms I
- Procedures in programs
- Programming project: subroutines II
- Programming project: subroutines I
- Creating an XOR function