Professional Documents
Culture Documents
The proportion that a student receives in an exceedingly course is beneficial in activity his
understanding of the topics studied; however, once observing the scholar’s entire semester,
mistreatment a mean percentage would cause serious issues. For example, one course might be
price only one credit and nevertheless the student received 100 percent which might raise his
semester average. this can be wherever score Average (GPA) is incredibly useful. Not solely will
it take into result individual course marks, it uses the burden of every course within the
calculation to possess a much better indication of the students’ academic status. touchstone is that
the total amount of grade points that a student earns divided by what number credits it took to
earn them. so as to earn grade points. Evaluation associate 83% in science maybe would take for
the scholar a GPA of 3.67 in this course. to search out the whole grade points the student attained
from that course, you'd merely multiply the GPA by the quantity of credits the course was worth.
I’ll provide C++ code that will be able to calculate the GPA for student regarding mark
entered for every subject, with demonstration of how do that.
PAGE 1
FLOW CHART
PAGE 2
The above flowchart shows the steps of calculating GPA for a specific student, at end it’ll ask the
user if he wish to continue with another student or not.
APPROACH
PAGE 3
PROGRAM CODE
#include <iostream>
int main(void) {
while(1){
int sems,courses,i;
int j;
float Grade,Hours;
for(j=0; j< courses; j++){ // then for each course taking the grade and credit
cout<<"Enter grade in course and credited hours for the course. ";
cin>>Grade;
cin>>Hours;
float gpa = totalGradePoints / totalCreditHours; // then dividing the total grade with total points
PAGE 4
cout<<"Your gpa for all semesters is: "<<gpa<<endl;
else if(gpa>=3){
else if(gpa>=2){
else if(gpa>=1){
else if(gpa>=0){
cout<<"print 1 to continue and 0 to stop. "<<endl; // asking the user if he wants to calculate gpa
for
cin>>x;
if(x== 0){
break;}}
return 0;
PAGE 5
SAMPLE OUTPUTS
PAGE 6
CONCLUSION
This application can greatly automate the processing of student results, reducing time and
accuracy. It's really nice to have some kind of review tool to see where you are in the class. You
can always enter grades into previously completed tasks, calculate weights according to class, and
receive output, even if you haven't completed or received grades yet.
PAGE 7