Unit 9 · Lesson 2
Build the idea
Start with the concept and its key vocabulary.
Parameters make one procedure useful with many values. They are named in the definition and receive the values supplied by each call. The body should use those parameters directly. If it asks for replacement input, it throws away the caller's data and defeats the purpose of passing parameters.
A named value received by a sub-program when it is called.
The parameter names written inside the brackets of a sub-program definition.
An instruction that runs a sub-program and supplies any required values.
Calling the same sub-program with different values instead of copying its code.