Would need to know the credits each course is worth
would need to know if advanced placement courses give more points for the letter grades
Generally A=4 B=3 C=2 D=1
Multiply course credits times grade value, add all these numbers together then divide by the number of total credits.