write a program in c++ to calculate cgpa of student. we are given sgpa of the student and the total number of semisters.
cgpa= sum of(sgpa*credits in that semister)/total number of credits.
we have to use header file cgpa.h
we have to use class name cgpa
we have to use function name float calccgpa(float sgpa[],int credits[],int noofsem)
sgpa= sgpa pf different sem
credits=integer array contains the credits of the sgpa
return cgpa
cgpa= sum of(sgpa*credits in that semister)/total number of credits.
we have to use header file cgpa.h
we have to use class name cgpa
we have to use function name float calccgpa(float sgpa[],int credits[],int noofsem)
sgpa= sgpa pf different sem
credits=integer array contains the credits of the sgpa
return cgpa
Comment