Computer Science for IGCSE & O level - Programming (Section 14 - No. 44)

What operation does the following line of pseudo-code perform? `studentAverage = studentTotal / numOfSubjects`
Assigns a new value to studentTotal.
Calculates the average mark of a student.
Outputs the value of studentTotal.
Declares a new variable called numOfSubjects.

Explanation

This code computes a student's average mark.

Comments (0)

Advertisement