general

Calculates a test or exam grade from the number of correct answers and total questions. Returns the percentage score, letter grade, points missed, and GPA points. Supports US grading (A/B/C/D/F with 4.0 GPA scale), UK grading (First/2:1/2:2/Third/Fail), and percentage-only mode. US thresholds: A>=90, B>=80, C>=70, D>=60, F<60. UK thresholds: First>=70, 2:1>=60, 2:2>=50, Third>=40, Fail<40. Useful for students checking scores and teachers computing class statistics.

post/api/test_grade

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/test_grade
  • Auth: none declared

Request body

correctnumber required

Number of questions answered correctly. Must be a non-negative integer.

totalnumber required

Total number of questions on the test. Must be a positive integer.

grading_scale'us' | 'uk' | 'percentage_only'

Grading scale to use. 'us' for A-F letter grades, 'uk' for First/2:1/2:2/Third/Fail, 'percentage_only' for just the percentage.

Response

Computed result for test_grade

toolstring required
versionstring required
computed_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.