Question: Please attach the Screenshot of a code and output? Consider the following definition of the classstudentType: publicstudentType: publicpersonType { public: voidprint(); voidcalculateGPA(); voidsetID(long id); voidsetCourses(const

Please attach the Screenshot of a code and output?

Consider the following definition of the classstudentType:

publicstudentType: publicpersonType { public: voidprint(); voidcalculateGPA(); voidsetID(long id); voidsetCourses(const stringc[], intnoOfC); voidsetGrades(const charcG[], intnoOfC);

voidgetID(); voidgetCourses(stringc[], intnoOfC); voidgetGrades(charcG[], intnoOfC); voidstudentType(stringfName= "", stringlastName= "", long id, stringc[] = NULL, charcG[] = NULL, intnoOfC= 0);

private: longstudentId; stringcourses[6]; charcoursesGrade[6] intnoOfCourses; )

Rewrite the definition of the classstudentTypeso that the functions print andcalculateGPAare purevirtualfunctions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!