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:
One default constructor.
One public void method named addQuizOrAssignmentdouble 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.
One public void method named addExamdouble 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.
One public double method named getFinalGrade that returns a double value that represents the current final grade in the course.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
