Question: keep the program the same, and add the into the main find the maximum and minimun among the 3 totalgrade Print out with it if


-NM st in using namespace std; //Base class Totalgrade CGIN M public: int grade; 7 }; 8 //derived class 1 9 class Examsgrade: Totalgrade o- { public: int grade_of_exam; 3 }; 4 //derived class 2 *5 class Quizzesgrade: Totalgrade 6-{ 7 public: 8 int quizzgrade; 9 }; 07/derived class 3 1 class Homeworkgrade: Totalgrade -2 { 3 public: 54 int hwgrade; 5 }; 56 //derived class 4 7 class attendancegrade: Totalgrade 38 -{ 39 public: I BE 38 - { 39 public: 40 int attgrade; 41 }; 42 int 43 main() 44 double total; Examsgrade exg[4]; Quizzesgrade qzgrade[4]; Homeworkgrade hwg[4]; attendancegrade att [4]; 45 for (int i = 1; i > exg[i].grade_of_exam; cout > qzgrade[i].quizzgrade; cout > hwg[i].hwgrade; cout > att[i].attgrade; total = exg[i].grade_of_exam + qzgrade[i].quizzgrade + hwg[i].hwgrade + att[i].attgrade; cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
