KTU S1

Case Study: Determining a Grade on the KTU Scale

By the end you should be able to: Implement the KTU grade scale in pseudocode using both if-else and case structures, and justify which structure suits a range-based scale.

This is sample problem 5 in the syllabus, and it appears in some form in most past papers. The syllabus asks for it using both if-else and case structures, which is deliberate — comparing the two is the actual lesson.

The official scale

From the APJ Abdul Kalam Technological University B.Tech Academic Regulations 2024, clause R 7.21:

GradeGrade Point% of total marks in the course
S1090% and above
A+9.085% and above but less than 90%
A8.580% and above but less than 85%
B+8.075% and above but less than 80%
B7.570% and above but less than 75%
C+7.065% and above but less than 70%
C6.560% and above but less than 65%
D6.055% and above but less than 60%
P5.550% and above but less than 55%
F0Below 50% overall (CIE + ESE), or below 40% in ESE

Two further grades exist that are not mark-based: FE (failed eligibility, or failed a CIE-only course) and Ab (absent). Neither can be determined from a percentage, so neither belongs in this algorithm.

Check this against the current regulations before relying on it. Grade scales are amended between schemes, and several websites publish outdated or incorrect versions of this table.

What makes this problem interesting

Look at the boundaries: 90, 85, 80, 75, 70, 65, 60, 55, 50.

They step by 5, not 10. That single fact decides which structure fits, and it's what the exercise is really testing.