Question: Essay Class - Redefining Base Class Function Design Essay class that is derived from the GradedActivity class (version 1) presented on p. 871 of the
Essay Class - Redefining Base Class Function
Design Essay class that is derived from the GradedActivity class (version 1) presented on p. 871 of the Chapter 15 of Gaddis textbook p. 895 of 8th Ed.
Course Github: m04/PR15/GradedActivity Version 1/
or try accessing this link: https://github.com/dvcchern/CS200/tree/master/m04/PR15/GradedActivity%20Version%201 (let me know if it doesn't work)
A sample run on Program 15-1 (from textbook)

You will have to copy this GradedActivyty.h from the textbook (or Github). The Essay class should determine the grade a student receives on an essay. The student s essay score can be up to 100, and is determined in the following manner:
- Grammar: 30 points
- Spelling: 20 points
- Correct length: 20 points
- Content: 30 points
There will be no failing grade for the essay. All essays below 70 (not including) points will have a 'C' grade.
Demonstrate this derived class, Essay, in a simple program.
The above grading policy is really incomplete because it did not indicate what to make of 'A' vs 'B', or just 'A' and 'C' grade. As a programmer you get to choose to implement your prototype, so long you announce the letter grading policy.
Testing Requirement
In the test driver, main(), first provide a test to verify the Essay class
Sample initial Essay test result
The following output would be what we normally see the textbook examples do:

The is requirement did not specify what score makes A or B grade for Essay. As a programmer, you decide what they are, but display the grading standard along with the report.
After the above test, provide two separate tests on a pair of GradedActivity and Essay objects:
set 1 { g85(85), report85(25, 20, 20, 20) }
set 2 { g65(65), report65(15, 10, 20, 20) }

The rest of the test program output:

Submit:
- Programs: testEssay.cpp, Essay.h, GradedActivity.h
- Validation test result
No starter for this assignment. Read Chapter 15 of the textbook for related information.
PLS READ ALL INSTRUCTIONS THOROUGHLY AND MAKE SURE THAT THE CODE FOR ALL 3 FILES FOLLOWS ALL REQUIREMENTS. Pls label and indicate the requirements that are needed in the coding as well to show that all requirements are met and have been included in the code.
If there are any doubts, feel free to ask me please, thank you!
I will not hesitate to rate if the answer is helpful asap!
The link to the github for the GradedActivity class has been provided at the very top of the question
Program Output with Example Input Shown in Bold Enter your numeric test score: 89 [Enter] The grade for that test is B Program Output with Different Example Input Shown in Bold Enter your numeric test score: 75 [Enter] The grade for that test is C Running /home/ubuntu/workspace/COMSC/200/Week04/testEssay.cpp Test 1 user provide data for Essay class: How many grammar points did the student earn? (o 30): 28 How many spelling points did the student earn? (0 20): 15 How many points for length did the student earn? (0 - 20): 15 How many points for content did the student earn? (0 - 30): 28 Grammar points: 28 Spelling points: 15 Length points: 15 content points: 28 Overall score: 86 Grade: A *Essay grading policy: A >= 85 > B >= 70 > C >= 0 Running /home/ubuntu/workspace/ g85(85): Graded Score: 85, Grade: B report85(25, 20, 20, 20): Grammer points: 25 Spelling points: 20 Length points: 20 content points: 20 Report Score: 85, Grade: A g65(65): Graded Score: 65, Grade: D report65(15, 10, 20, 20): Grammer points: 15 Spelling points: 10 Length points: 20 content points: 20 Report Score: 65, Grade: C Test 2 - One argumented Base Class: Graded Score: 85, Grade: B Test 3 Four arguments Derived Class: Grammar Points: 25 Spelling Points: 20 Length Points: 20 Content Points: 20 Report: 85, Grade: A *Essay grading policy: A >= 85 > B >= 70 > C >= 0 Test 4 One argument Base class: Graded Score: 65, Grade: D Test 5 - Four arguments Derived class: Grammar Points: 15 Spelling Points: 10 Length Points: 20 Content Points: 20 Report: 65, Grade: C *Essay grading policy: A >= 85 > B >= 70 > C >= 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
