Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 12 - No. 29)

In the provided algorithm for checking a percentage mark, what is the condition that must be met for the algorithm to output 'Fail'?
Percentage mark is less than 0.
Percentage mark is greater than 100.
Percentage mark is not within the range of 0 to 100.
Percentage mark is equal to 0.

Explanation

The algorithm explicitly checks if the percentage mark is outside the valid range (0-100), and if so, it outputs 'Fail'.

Comments (0)

Advertisement