Question: Java Instructions Design a TestScores class that has fields to hold three test scores. The class should have a constructor, accessor and mutator methods for

Java
Instructions
Design a TestScores class that has fields to hold three test scores.
The class should have a constructor, accessor and mutator methods for the test score fields, and a method that returns the average of the test scores.
Demonstrate the class by writing a separate program that creates an instance of the class. The program should ask the user to enter three test scores,
which are stored in the TestScores object. Then the program should display the average of the scores, as reported by the TestScores object.
Sample Run
Enter test score #1: 100
Enter test score #2: 50
Enter test score #3: 50
The average test score is 66.67
Additional Notes:
Your class should be named TestScores.
Regarding your code's standard output, CodeLab will check for case errors and will check whitespace (tabs, spaces, newlines) exactly.
Sample Run #1 of 1
Java Instructions Design a TestScores class that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Programming Questions!