fixed bug in calculate_course_grade.c