Answered step by step
Verified Expert Solution
Link Copied!

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:
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

2. What type of team would you recommend?

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago