Question
IN JAVA (ECLIPSE) Design a TestScores class that has fields to hold three test scores. (If you have already written the TestScores class for programming
IN JAVA (ECLIPSE)
Design a TestScores class that has fields to hold three test scores. (If you have already written the TestScores class for programming challenge 8 of chapter 3, you can modify it.) the class constructor should accept three test scores as arguments and assign these arguments to the test score fields. The class should also have accessor methods for the test score fields, a method that returns the average of the test scores, and a method that returns the letter grade the is assigned for the test score average. Use the grading scheme in the following table:
Test Score Average: | Letter Grade: |
90-100 | A |
80-89 | B |
70-79 | C |
60-69 | D |
below 60 | F |
*Extra Needs: *
Use JOptionPane for I/O. Use constants where appropriate.
You should have a TestScores.java and a testing class that houses your main. *
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