Computes a credit-weighted grade point average from a list of letter grades and their credit hours on the standard 4.0 scale.
Published for review. The Founder is checking every card himself; anything he strikes comes down the same hour.
Try it
Inputs
grades (array, required) one of: A, A-, B+, B, B-, C+, C, C-, D+, D, D-, F : Letter grades, one per course.
credits (array, required) : Credit hours for each course, same length and order as grades.
Outputs
gpa: Credit-weighted grade point average on a 4.0 scale.
Steps
Convert each letter grade to grade points using the standard 4.0-scale table: A=4.0, A-=3.7, B+=3.3, B=3.0, B-=2.7, C+=2.3, C=2.0, C-=1.7, D+=1.3, D=1.0, D-=0.7, F=0.0.
Multiply each course's grade points by its credit hours and sum the results.
Grading System (University of Missouri, Office of the University Registrar, 2026-09-30T22:25:22Z) - Confirmed table: A+/A 4.00, A- 3.7, B+ 3.3, B 3.00, B- 2.7, C+ 2.3, C 2.00, C- 1.7, D+ 1.3, D 1.00, D- 0.7, F 0; matches the plus/minus values used here exactly (A+ not used by this card).