previous
|
start
|
next
Walkthroughs
Before entrusting a subprogram to a computer, it is a good idea to put it through a dry run or
walkthourgh
.
Take out an index card and write down the name of the function you want to study.
Write down the names of the function variables in a table, since you will update them as you walk through the code.
int_name(n = 416)
c
r
416
""
When your function calls another function, you can either start another card, or assume that it performs correctly.
int_name(n = 416)
c
r
416
""
digit_name(n = 4)
Returns
"four"
previous
|
start
|
next