class GradedActivity { private: double score; public: GradedActivity() { score = 0.0; } GradedActivity(double s) { score = s; } void setScore(double s) { score = s; } double getScore() { return score;...





class GradedActivity


{


   private:


     double score;


   public:


     GradedActivity()


          { score = 0.0;  }


     GradedActivity(double s)


          { score = s;  }


     void setScore(double s)


          { score = s;  }


     double getScore()


          { return score;  }


     char getLetterGrade()  const;


};



  • Implement the GradedActivity class above.

  • In this C++ assignment, create a new class Assignment which is derived from GradedActivity.  It should have three private member ints for 3 different parts of an assignment score:
    functionality (max 50 points),efficiency (max 25 points), andstyle (max 25 points).

  • Create member function set() in Assignment which takes three parameter ints and sets the member variables.  It should also set its score member, which is inherited from GradedActivity, using the setScore() function, to functionality + efficiency + style.  Signature:


void Assignment::set(int, int, int)



  • Create a main program which instantiates an Assignment, asks the user for its functionality, efficiency, and style scores, and prints out the score and letter grade for the assignment.






Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here