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.
- 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] Reference variables for Count of students and Total marks
- [1] Loop through all students (Count)
- [1] Input individual mark (in loop)
- [1] Compare mark with threshold / boundary values to determine grade (in loop)
- [1] Output the grade for a student (in loop)
- [1] Maintain a Total (and Count if required) (in loop)
- [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 →