Program debugging log
Give an average-calculating program three sets of known inputs. Use the results to locate the incorrect step. Run the same failing input after changing the code and record whether the expected result now appears.
Edit templateClassroom use
What should I prepare, and how should I review the result?
Pseudocode to check: Set total to 0. Add each input number to the total. Output total divided by 2. Use [2,4], [2,4,6] and [8] as tests. Finish by discussing the prompt “Which test shows that the correction worked?”
How to use this template
1. Gather the materials
Before using this template, gather the following: Starting program, goal, output.
2. Assign the worksheet
Give an average-calculating program three sets of known inputs. Use the results to locate the incorrect step. Leave the response cells blank when printing for students.
3. Review the result
Use the follow-up prompt to review the work. The completed template can capture Reproduction conditions, hypothesis, modification, retest.
Frequently asked questions
Where is my draft saved?
Reopen this template in the same browser on the same device to continue editing. Save a PDF before clearing browser data or starting another copy.
Can I print a blank form?
Yes. Leave the fields blank and select Print / Save PDF. If you have a draft, save a copy before clearing its entries.
Related classroom templates
Experiment variables planner
Compare how different folds affect the load a paper bridge can carry. First identify the one condition you will change.
Experimental data log
Drop a ball from the same height three times and measure its bounce height. Include units and conditions.
Evidence for a scientific conclusion
A flat paper bridge held 3, 4 and 3 coins. A folded bridge held 8, 7 and 8. Which carried more in these tests?