Problem

Write a constructor for the class ScienceFairProjectRating, as described in Exercise. Give...

Write a constructor for the class ScienceFairProjectRating, as described in Exercise. Give this constructor three parameters corresponding to the first three attributes that the exercise describes. The constructor should give default values to the other attributes.

Consider a class ScienceFairProjectRating that will be used to help judge a science fair project. It will use the class Rating Score. The attributes for the new class are

• The name of the project

• A unique identification string for the project

• The name of the person

• A rating for the creative ability (max. 30)

• A rating for the scientific thought (max. 30)

• A rating for thoroughness (max. 15)

• A rating for technical skills (max. 15)

• A rating for clarity (max. 10)

It will have methods to

• Get the number of judges

• Get all the ratings for a particular project

• Return the total of the ratings for a particular project

• Return the maximum total rating possible

• Return a string showing a project’s rating in a format suitable for display

a. Write a method heading for each method.


b. Write preconditions and postconditions for each method.


c. Write some Java statements that test the class.


d. Implement the class.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT