< previous page page_323 next page >

Page 323
7
Functions
GOALS
To be able to write a program that uses functions to reflect the structure of your top-down design.
To be able to write a module of your own design as a void function.
To be able to define a void function to do a specified task.
To be able to distinguish between value and reference parameters.
To be able to use actual and formal parameters correctly.
To be able to do the following tasks, given a top-down design of a problem:
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Determine what the formal parameter list should be for each module.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Determine which formal parameters should be reference parameters and which should be value parameters.
3e26ecb1b6ac508ae10a0e39d2fb98b2.gif
Code the program correctly.
To be able to define and use local variables correctly.
To be able to write a program that uses multiple calls to a single function.

 
< previous page page_323 next page >