Transcribed TextTranscribed Text

Do Project #5, Programming Challenges, Ch 10, #5, p. 699. Use classes GradedActivity, FinalExam, PassFailActivity, and PassFailExam (see Fig. 11-16) and write two additional classes CourseGrades and subclass of GradedActivity Essay (see assignment #4, p. 699). Their UML diagrams looks like Class CourseGrades has an object (or aggregates) class GradedActivity. The UML diagram looks like To run this assignment create a client class CourseGradeDemo. If for example you run CourseGradeDemo with an object of the GradedActivity with score 85, with an object for the pass/fail exam (20 total questions, 3 questions missed, minimum passing score is 70), with an object for the essay grade (Grammer = 25, spelling = 18, length = 17, content = 20), and an object for the final exam (50 questions, 10 missed) your output may look like:

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

* Essay class
public class Essay extends GradedActivity {

private double grammar;
private double spelling;
private double correctLength;
private double content;

public Essay(double gr, double sp, double len, double cnt) {
    setScore(gr, sp, len, cnt);

public void setScore(double gr, double sp, double len, double cnt) {

private void setGrammar(double g) {
    grammar = g;

private void setSpelling(double s) {
    spelling = s;

private void setCorrectLength(double c) {
    correctLength = c;

By purchasing this solution you'll be able to access the following files:,,,,, and

for this solution

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Upload a file
Continue without uploading

We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats