nz_gpa_calculator
Calculate a grade point average for a New Zealand university.
Use for any NZ GPA question: 'what is my GPA', 'work out my grade point
average from these grades', 'how much will a C drag my GPA down'.
CRITICAL: New Zealand uses a NINE POINT scale, not the American 4.0 scale.
A+ 9, A 8, A- 7, B+ 6, B 5, B- 4, C+ 3, C 2, C- 1, D and below 0. A GPA of
7.0 is a strong New Zealand result. Do NOT convert to or from a 4.0 scale:
the bands do not correspond and any conversion will be wrong.
It is credit-weighted, so a grade in a 45 credit paper counts three times a
grade in a 15 credit one, and failed papers still count their credits at
zero points.
Args:
courses: One dict per paper, each with "grade" (A+, A, A-, B+, B, B-,
C+, C, C-, D+, D, D-, U, F or J) and "credits" (commonly 15).
scale: Optional overrides if the institution weights grades differently.
Returns:
The GPA, the credits and weighted points it came from, and each paper's
contribution so the result can be shown rather than asserted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scale | No | ||
| courses | Yes |