Parameters
A special type of variable used in the definition of a subprogram, which defines the values that are inputted when the subprogram is executed.
A special type of variable used in the definition of a subprogram, which defines the values that are inputted when the subprogram is executed.
The example above uses parameters to define values for the variable in a program that creates the line from a given slope and y-intercept. Having students create and alter code of this nature corresponds with Mathematics Grade 9 C2.1, 2.2, 2.3, C3, C4.