Question: need help with Java programming language The Lenient Grader To gain an understanding of inheritance Directions Download the file Grader.java and add it to your
need help with Java programming language
The Lenient Grader
To gain an understanding of inheritance
Directions
Download the file Grader.java and add it to your Eclipse project. The Grader class stores a students numeric grades and has methods to add a new grade, get a copy of all of the grades, and assign a letter grade by computing the average numeric grade and assigning an A if the average is 90 100, a B if it is 80 89, etc.
Your task is to write a LenientGrader class that extends the Grader class. The LenientGrader class should have a field called dropLowest. Write a constructor for LenientGrader that takes an integer value as an argument and initializes dropLowest to this value. Then override the getLetterGrade() method such that the appropriate grades are dropped before the letter grade is computed. For example, if a students grades are 78, 81, 92, 77, 85, and 88 and dropLowest equals 2, then the students average is (81 + 92 + 85 + 88) / 4 = 86.5 and the letter grade is therefore B. Do not add or change any code in Grader.jave.
Write a main method to thoroughly test your class. the Grader.java file contents are here
-----------------------------------------------------------
import java.util.ArrayList;
public class Grader {
private ArrayList
public ArrayList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
