Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 the grade greater than
90 is excellence
less than or = 80 is good
less or = 70 is average
less than 60 or =60 is bad
image text in transcribed
image text in transcribed
-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

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

Recommended Textbook for

Intelligent Information And Database Systems Second International Conference Acids Hue City Vietnam March 2010 Proceedings Part 1 Lnai 5990

Authors: Manh Thanh Le ,Jerzy Swiatek ,Ngoc Thanh Nguyen

2010th Edition

3642121446, 978-3642121449

More Books

Students also viewed these Databases questions

Question

What is the preferred personality?

Answered: 1 week ago