Trace Tables
Previous Knowledge.
I did Trace Tables during my degree but it's been a while since I have seen them and used them.
Strengths.
I really quite enjoy working through the possible outcomes in a program.
Weaknesses.
Trace tables can be tricky to get correct.
Current Knowledge.
I can construct and go through trace tables now.
Teaching Ideas.
Go through the Trace Table for
A trace table plots the output for a set of data.
t = int(input )
for n1 in range (1,13)
print (t *x)
Number |
t |
N1 |
Output |
Endloop |
1 |
7 |
|
|
|
2 |
|
1 |
|
|
3 |
|
|
7 |
N |
2 |
|
2 |
|
|
3 |
|
|
14 |
N |
2 |
|
3 |
|
|
3 |
|
|
21 |
N |
2 |
|
4 |
|
|
3 |
|
|
28 |
N |
2 |
|
5 |
|
|
3 |
|
|
35 |
N |
2 |
|
6 |
|
|
3 |
|
|
42 |
N |
2 |
|
7 |
|
|
3 |
|
|
49 |
N |
2 |
|
8 |
|
|
3 |
|
|
56 |
N |
2 |
|
9 |
|
|
3 |
|
|
63 |
N |
2 |
|
10 |
|
|
3 |
|
|
70 |
N |
2 |
|
11 |
|
|
3 |
|
|
77 |
N |
2 |
|
12 |
|
|
3 |
|
|
84 |
Y |
|
|
STOP |
|
|