Skip to main content
A-LevelComputer ScienceComputational thinking and problem-solving9618/22 · May/June 2021 · Q46 Marks

A teacher uses a paper-based system to store marks for a class test. The teacher requires a program to assign grades based on these results. The program will output the grades together with the average mark. Write a detailed description of the algorithm that will be needed.

  1. Write a detailed description of the algorithm that will be needed.[6]

Mark scheme

Marking points from the official mark scheme (May/June 2021). The mark or mark type is shown in brackets.

  1. [1] Reference variables for Count of students and Total marks
  2. [1] Loop through all students (Count)
  3. [1] Input individual mark (in loop)
  4. [1] Compare mark with threshold / boundary values to determine grade (in loop)
  5. [1] Output the grade for a student (in loop)
  6. [1] Maintain a Total (and Count if required) (in loop)
  7. [1] Calculate average by dividing Total by Count and Output (after loop)

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 →

About this question

Topic
Computational thinking and problem-solving, A-Level Computer Science (syllabus 9618). Structured question, 6 marks.
Source
A-Level Computer Science, May/June 2021 Paper 2 Variant 2, question 4.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep