Hello, I need help with this simple Java program.
You are to write a program that will take a grade as a String. This grade has the form of a letter (e.g. A, B, C, D, F) followed by an optional sign (e.g. +, -). The letter values are worth 4.0 grade points for an A, 3.0 for a B, 2.0 for a C, 1.0 for a D, and 0 for an F. The + sign adds 0.3 to the grade points and the - sign subtracts 0.3. Note that an "A+" is still 4.0 points and an "F+" or "F-" is still 0 grade points. NOTE: You may not hard-code the return value for +/- grades, but must add or subtract 0.3.
This object will have a constructor that takes one argument and the following two methods:
public Grade(String grade) - Constructor that sets the grade as a String. This is the only place the grade is set.
public String getLetterGrade() - Returns the grade as a String.
public double getNumericGrade() - Returns the numeric grade in the range 0.0 <= grade <= 4.0.
Code to test the program goes in Program.java and the code actually being run goes in IntegerPairs.java.