Create a program in Python to calculate grade point averages for college students. Grade point averages are calculated by dividing total number of quality points by the total number of earned credit hours. Quality points are grades earned multiplied by the credit hours of a course. A grade of A is worth 4 points, B is 3 points, C is 2 points, D is 1 point and an F is 0 points.
Your program should prompt the student to enter their name, total credit hours earned, and total quality points earned. Calculate the grade point average and display back the student’s name along with their gpa for my example of John Doe.
Hi John Doe. Your grade point average is 3.30.
name = input()
total_credit = int(input())
total_points = int(input())
grade_points = total_points/total_credit
print(f'Name :${name} \n grade_points : ${grade_points}')
Comments
Leave a comment