Professional Documents
Culture Documents
Algorithms and TraceTables - DTA
Algorithms and TraceTables - DTA
It can be seen from the output that the algorithm selects the largest and the
smallest numbers from a list of 10 positive numbers. The same trace table
could have been used if the algorithm had been shown using pseudocode.
and record the results on a trace table.
Test data: 9, 7, 3, 12, 6, 4, 15, 2, 8, 5
TRACE TABLES
Test data is then used to dry run the flowchart
It can be seen from the output that the algorithm selects the largest and the
smallest numbers from a list of 10 positive numbers. The same trace table
could have been used if the algorithm had been shown using pseudocode.
Write out the Pseudo code , Draw and use the trace table below
and the test data 4, 8, 19, 17, 3, 11, 6, 1, 13, 9 to record a dry run
of the pseudo code. TASK
TASK
Use a trace table and the test data 400, 800, 190, 170, 300, 110, 600, 150,
130, 900 to record another dry run of the pseudocode or flowchart.
Dealing with errors
Use a trace table and some negative test data to record another dry run
of the pseudocode or flowchart.
What error have you found?