Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started