This lesson has been designed to deepen learners’ understanding of a while loop whilst introducing trace tables. Learners will be given an example of how to use a trace table, then they will be given various loops to trace. Trace tables are a valuable part of programming because they allow learners to walk through code and detect errors.
- Use a trace table to walkthrough code that uses a while loop
- Use a trace table to detect and correct errors in programs