Question: JAVA PLEASE Design a TestScore class that has three integer fields, each holding a test score. The class should have accessor and mutator methods for

JAVA PLEASE

Design a TestScore class that has three integer fields, each holding a test score. The class should have accessor and mutator methods for the test score fields and a method that returns the average of the test scores as a double. Test the TestScore 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 should be stored in the TestScore object. The program should then print the average of the scores.

SAMPLE RUN #1: java TestScores

JAVA PLEASE Design a TestScore class that has three integer fields, each

Design a TestScore class that has three integer fields, each holding a test score. The class should have accessor and mutator methods for the test score fields and a method that returns the average of the test scores as a double. Test the TestScore 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 should be stored in the TestScore object. The program should then print the average of the scores. SAMPLE RUN #1: java Test Scores Interactive Session Hide Invisibles Highlight: None Show Highlighted Only O Enter.first.score: 100- Enter second-score:932 Enter third-score: 652 86.02

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 Databases Questions!