Create a program for a student to keep determine their GPA based on the grades s
ID: 3635083 • Letter: C
Question
Create a program for a student to keep determine their GPA based on the grades students receive. You will ask the user for their name, and to enter the names of classes, units per class, and grades received (store this data in an array to process).
The output will consist of the student’s name, and their current GPA.
The GPA formula is computed as the total credit hours received divided by the total units taken. Credit hours are earned by multiplying the weight of the grade earned by the number of units. The weights are as follows: A = 4; B = 3; C = 2, D = 1; F = 0. Therefore, the GPA for someone who takes two 3-unit classes and receives 1 A and 1 C will be computed as follows:
Total credit hours = units * weight for A + units * weight for C => 3 * 4 + 3 * 2 = 12 + 6 => 18
Total units taken = 3 + 3 = 6
Thus, the GPA = Total credit hours / Total units = 18 / 6 = 3.0
Note : make sure you read the data into arrays, and use the array to print the records. In addition, you are to use a function to compute the GPA and use at least two subroutines and please include the Form Design
Explanation / Answer
Hi i have written the code on my laptop, but i can't type it and post it here because there's no time... please rate me lifesaver and i'll make sure the answer is in your inbox! i don't do this generally but i am doing this due to lack of time...
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.