Answer to Question #228606 in Python for Zach

Question #228606

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.   



1
Expert's answer
2021-08-24T01:55:01-0400
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}')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS