Determine an appropriate activity for a given temperature
(swimming if it is hot, tennis if cooler,...) .
Steps:
- Get the temperature
- Print the activity.
Functions:
- get_temp
- print_activity
What are the parameters?
Which are value and which are reference?
main |
|
print_activity |
|
--> |
temp |
Structure Chart:
main
temp temp
get_temp print_activity