1, the score of each course multiplied by its credits.
2. Add up all the courses.
3, except for the total score, get the average score of each subject.
4. The average score of each subject is multiplied by the sum of the credit percentages of the corresponding subjects, and the weighted average score can be obtained by adding these products.