Question: create one class named GradeSimulator according to the following instructions: 1 . One default constructor. 2 . One public void method named addQuizOrAssignment ( double

create one class named GradeSimulator according to the following instructions:
1. One default constructor.
2. One public void method named addQuizOrAssignment(double myGrade, double maxGrade) that expects two double arguments. The first representing the grade you receive in the assignment and the other representing maximum grade possible for that assignment.
3. One public void method named addExam(double myGrade, double maxGrade) that expects two double arguments. The first representing the grade you receive in the exam and the other representing the maximum grade possible for that exam.
4. One public double method named getFinalGrade() that returns a double value that represents the current final grade in the course.
5. Negative input values should be ignored in the methods implementations and not change the final grade.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To create the GradeSimulator class as per the instructions follow the steps below Step 1 Default Constructor Purpose The default constructor initializ... View full answer

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!