Original study example
A program totals the positive numbers in [3, -2, 0, 5]. Write the steps, trace the running total and choose a second test input.
Work through the example
Start at zero. Add 3, skip -2 and 0, then add 5: the total is 8. Test an empty list and a list with no positive values; explain why both should return zero. Use the language required by your own course.