Question: support files java program need to submit the source code and the driver program for the problem. Submit your flowchart or pseudo code. 5. Course

support files java program need to submit the source code and thesupport files

driver program for the problem. Submit your flowchart or pseudo code. 5.

Course Grades In a course, a teacher gives the following tests and

java program

need to submit the source code and the driver program for the problem. Submit your flowchart or pseudo code.

5. Course Grades In a course, a teacher gives the following tests and assignments: A lab activity that is observed by the teacher and assigned a numeric score. A pass/fail exam that has 10 questions. The minimum passing score is 70. An essay that is assigned a numeric score. A final exam that has 50 questions. Write class named CourseGrades. The class should have an array of GradedActivity objects as a field. The array should be named grades. The grades array should have four elements, one for each of the assignments previously described. The class should have the following methods: setLab This method should accept a Gradedactivity object as its argument. This object should already hold the student's score for the lab activity. Element 0 of the grades field should reference this object. set PassFailExam This method should accept a PassPailExam object as its argument. This object should already hold the student's score for the pass/fail exam. Element 1 of the grades field should reference this object. setEssay This method should accept an essay object as its argument. (See Programming Challenge 4 for the Essay class. If you have not completed Programming Challenge 4, use a Gradedactivity object instead.) This object should already hold the student's score for the essay. Element 2 of the grades field should reference this object. setFinalExam This method should accept a FinalExam object as its argument. This object should already hold the student's score for the final exam. Element 3 of the grades field should reference this object. toString This method should return a string that contains the numeric scores and grades for each element in the grades array. Demonstrate the class in a program Course Grades |-grades[] : Graded Activity |- NUM_GRADES: int = 4 + Course Grades() + setLab(aLab : Graded Activity) : void + setPass FailExam(aPassFailExam : PassFailExam) : void + setEssay(anEssay: Essay) : void + setFinalExam(aFinalExam : FinalExam): + toString(): String GradedActivity score : double + setScore(s: double): void + getScore(): double + getGrade() : char CourseGrades PassFailExam CourseGradesDemo PassFailActivity FinalExam Essay BA GradedActivity

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!