Practice
SelectionExtendedIGCSE 0478

Letter grade from a mark

Nested IF or CASE practice for IGCSE Computer Science: convert a mark into a letter grade.

Marks convert to grades as follows: 80 or more is A, 70 or more is B, 60 or more is C, otherwise U.

Write pseudocode that reads one integer mark and outputs the matching grade letter.

Your program should

  • Read one INTEGER mark.
  • Use nested IF statements or CASE.
  • Output A, B, C, or U.

Sample input

73

Sample output

B

Starter

Pseudocode
// Convert one mark into A, B, C, or U using the grade boundaries in the question.
DECLARE Mark : INTEGER