Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help for c++ pls include screenshot Assignment 4 Essay Class - Redefining Base Class Function Design an Essay class that is derived from the Graded

help for c++ image text in transcribed
image text in transcribed
image text in transcribed
pls include screenshot
Assignment 4 Essay Class - Redefining Base Class Function Design an Essay class that is derived from the Graded Activity class (version 1) presented on p. 871 of the Chapter 15 of Gaddis textbook p. 895 of 8th Ed. Course Github m04/PRIS/Graded Activity Version 11 A sample run on Program 15-1 (from textbook) Program Output with Example Input Shown in Bold Enter your nuserie test score: 89 (Enter) The grade for that test is a Program Output with different Example Input shown in Hold mter your numeric test scoret 75 [Enter] The grade for that test is c You will have to copy this Graded Activyty.h from the textbook for Github). The Essay class should determine the grade a student receives on an essay. The students 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 and 'C grade. As a programmer you get to choose to implement your prototype, so long you announce the letter trading 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 Running /home/ubuntu/workspace/COMSC/200/Week04/testEssay.cpp Test 1 User provide data for Essay class: How many granmor points did the student earn? (0 - 30): 28 How many spelling points did the student carn? (@- 20): 15 How many points for length did the student earn? C@ - 20): 15 How many points for content did the student corn? ( - 30): 28 Grammar points: 28 Spelling points: 15 Length points: 15 content points: 28 Overall score: 86 Grade: A *Essay grading policy: A >85 >>70C > 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 Graded Activity and Essay objects: set 11 885(85), report85(25, 20, 20, 20)] set 2 1 865(65), report65/15, 10, 20,20) Running /home/ubuntu/ workspace/ 885(85): Graded Score: 85, Grade: B report85(25, 20, 20, 20): Gramner points: 25 Spelling points: 20 Length points: 20 content points: 20 Report Score: 85, Grade: A 865(65): Graded Score: 65, Grade: D report65(15, 1e, 2e, 2e): Grammer points: 15 Spelling points: 10 Length points: 20 content points: 20 Report Score: 65, Grade: C The rest of the test program output: 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 Submit: 1. Programs: testEssay.cpp, Essay.h, GradedActivityh 2. Validation test result No starter for this assignment. Read Chapter 15 of the textbook for related information

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

Students also viewed these Databases questions

Question

=+ What may stay the same?

Answered: 1 week ago