This pseudocode algorithm allows 5000 numbers to be entered and stored in an array called Number. FOR Count ← 1 TO 5000 INPUT Number [Count] NEXT Count
- Extend and re-write the algorithm using pseudocode to also count and output how many of the numbers stored in the array are greater than 500, using the variable Higher. Only output Higher once with an appropriate message.[6]
Mark scheme
Marking points from the official mark scheme (Oct/Nov 2020). The mark or mark type is shown in brackets.
- [6] Any six from: MP1 Initialisation of Higher to 0 before the loop
- MP2 Use of IF statement
- MP3 Correct condition in IF statement
- MP4 Correct counting statement inside loop
- MP5 OUTPUT/PRINT statement with correct reference to Higher
- MP6 Appropriate message in output
- MP7 Correct location of OUTPUT and IF statements
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →