Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

1. Explain how new technologies are influencing training.

Answered: 1 week ago