Question: Write a C program that calculates the GPA for a student in a single semester. The following formula gives the semester GPA: Grade of Course

Write a C program that calculates the GPA for a student in a single semester. The following formula gives the semester GPA: Grade of Course 1 x Credit Hours of Course 1 + Grade of Course 2 x Credit Hours of Course 2 + ... + Grade of Course n x Credit Hours of Course n GPA = Credit Hours of Course 1 + Credit Hours of Course 2 + ... + Credit Hours of Course n The program will ask the user for the number of courses that the student have. The grade are expected out of 100%. The GPA (%) is printed on the screen as well as the letter grade. The letter grade is assigned based on the following table: Grade Range Grade Letter 90-100 A 80-89 B 70-79 VA 60-69
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
