|Understand the concept of subroutines.||Know that a subroutine is a named ‘out of line’ block of code that may be executed (called) by simply writing its name in a program statement.|
|Explain the advantages of using subroutines in programs.|
|Describe the use of parameters to pass data within programs.||Students should be able to use subroutines that require more than one parameter. Students should be able to describe how data is passed to a subroutine using parameters.|
|Use subroutines that return values to the calling routine||Students should be able to describe how data is passed out of a subroutine using return values.|
Know that subroutines may declare their own variables, called local variables, and that local variables usually:
|Use local variables and explain why it is good practice to do so.|
Subroutines (procedures and functions)
Subroutines (procedures and functions).