a b output 3 7 (1 mark) State the purpose of this algorithm? (1 mark) Question 6 b Trace the pseudocode of an algorithm. pseudocode shown in the box alongside: Consider the What you need to do Complete the trace below with input values: n is 4. Copy your answers to the Electronic Answer Document (EAD) n x s output 4 0 1 (2 marks) Fill in the trace below with n input as 8 and copy to your EAD n x s output 8 0 1 (2 marks) State the purpose of this algorithm? (1 mark) Note: MOD calculates the remainder (what is left) from integer division. For example 17 MOD 5 is 2 You may want to code these to check your answers (but you are not required to do so).
a b output 3 7 (1 mark) State the purpose of this algorithm? (1 mark) Question 6 b Trace the pseudocode of an algorithm. Consider the pseudocode shown in the box alongside: What you need to do Complete the trace below with input values: n is 4. Copy your answers to the Electronic Answer Document (EAD) n x s output 4 0 1 (2 marks) Fill in the trace below with n input as 8 and copy to your EAD n x s output 8 0 1 (2 marks) State the purpose of this algorithm? (1 mark) Note: MOD calculates the remainder (what is left) from integer division. For example 17 MOD 5 is 2 You may want to code these to check your answers (but you are not required to do so).