Lesson 3.9 · Answer it
Flowchart odds
4 marksYou mark it yourself against the marking points
The flowchart below describes an algorithm. It reads a whole number n, then repeats some steps.
Trace the flowchart with the input 6. Keep a trace table with a column for i, one for total and one for the output.
(a) Write down every value i has each time total = total + i runs. [1]
(b) Write down every value total takes, in order. [1]
(c) State the output. [1]
(d) State how many times the question in the diamond is asked. [1]
[4]