Home /
Expert Answers /
Computer Science /
in-c-7-write-a-program-to-calculate-the-grade-point-average-gpa-of-a-student-by-getting-their-pa553
(Solved): IN C++
7. Write a program to calculate the grade point average (GPA) of a student by getting their ...
IN C++
7. Write a program to calculate the grade point average (GPA) of a student by getting their grades for all their subjects. Grades and their grade points are Grade S 10 points Grade A Grade B Grade C Grade D Grade E Grade F 9 points 8 points 7 points 6 points 5 points 0 points The program should input the number of subjects, followed by the grade obtained in each subject. The program should calculate the average of the grade points and print it.
c++ program : #include using namespace std; int main () { int j,m; float aveg; int total=0; cout<<"\nEnter the Number of Subjects : " ; cin>> m ; //read the number of