Check the starting point
- Trace loop updates
- Use zero-based list indices when specified
Show the idea
A running total is a data structure operation
| Index | Entry | Running total |
|---|---|---|
| 0 | -2 | -2 |
| 1 | 5 | 3 |
| 2 | 8 | 11 |
A loop adds each list entry once. The total and number of entries are separate values.
Work through an example
A running total is a data structure operation — explain the representation.
| Index | Entry | Running total |
|---|---|---|
| 0 | -2 | -2 |
| 1 | 5 | 3 |
| 2 | 8 | 11 |
- A loop adds each list entry once. The total and number of entries are separate values.
- Connect the labels to the calculation or rule. Data indexing and initial values can cause errors even when the arithmetic is correct.
Answer: A loop adds each list entry once. The total and number of entries are separate values.
Teach in small steps
- Begin with a short oral check: ask your child to trace loop updates. Then check that they can use zero-based list indices when specified. Revisit either skill before adding a new procedure.
- Explore “A running total is a data structure operation” together. A loop adds each list entry once. The total and number of entries are separate values. Ask your child to point to the quantities or features used at each step.
- Model the example: Find the mean of list [3,7,8] using an algorithm. Pause before each step and invite a prediction. Set total=0; add each entry to get 18. Divide by list length 3.
- Work together on the first new practice question: Trace a running total through the list [4, −3, 7, 2], starting at zero. Have your child attempt the remaining learn questions with less help, then move to apply. Use the checkpoint on a later attempt to see which ideas are retained.
Ask and listen
- A list contains six entries and uses indices starting at zero. Give the first and last valid indices.
- A mean routine receives an empty list. Why is returning zero without explanation misleading?
Adapt the practice
More support
Return to “A running total is a data structure operation” and explain one label or step at a time. Data indexing and initial values can cause errors even when the arithmetic is correct. Let your child show a calculation, drawing or spoken explanation before requiring a polished written answer.
More challenge
Try this application after the core method is secure: Write the output of an algorithm that counts entries ≥ 5 in [5, 2, 8, 5, −1]. Explain why repeated values both count. Then ask which assumption or input could be changed and what would need to be recalculated.
Look for understanding
- The learner can complete and explain this checkpoint task: Create paired outputs for inputs [−2, 1, 3] under y =
+ 1.
- The learner can address the reasoning or error-checking question: A mean routine receives an empty list. Why is returning zero without explanation misleading? Accept a correct alternative method, but ask for the mathematical reason.
Choose the next step
If both checks can be explained without prompting, continue to Linear inequalities. If a method is still uncertain, repeat the visual example with fresh numbers before progressing.
Put the idea into practice
The matching topic collection includes learn-and-practise, application and checkpoint PDFs with worked answers. Download the free preview to see representative pages.
Explore this topic’s worksheets