Question: Design an Essay class that is derived from the GradedActivity class presented in this lesson. The Essay class should determine the grade a student receives

Design an Essay class that is derived from the GradedActivity class presented in this lesson. 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

Demonstrate with a dynamic array of objects of the Essay class in program where you read data from a file named essays.dat and echos the contents onto the screen with the grade. The input file has the following format:

2 30 20 15 30

30 10 15 20

The first line of the file contains an integer indicating the number of essays in the file. Each essay will have 4 lines of data corresponding to each criteria on the rubric.

An example of the echoed data is:

Essay #1 -----------

Grammar: 30 points Spelling: 20 points Correct length: 15 points Content: 30 points

Grade: 95

Essay #2 ----------- Grammar: 30 points Spelling: 10 points Correct length: 15 points Content: 20 points

Grade: 75

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!