Solve this programming problem:
Program: Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -. Their numeric values are 4, 3, 2, 1, and 0. There is no F+ or F-. A + increases the numeric value by 0.3, a - decreases it by 0.3.
However, an A+ has value 4.0.
example of output:
Enter a letter grade: B-
numeric value is 2.7.
Use a class Grade with a method getNumericGrade.
Use a Class "Grade" with a method "getNumericGrade"
Also please seek to make it so that when any other letter is answered for it to say "Not a valid letter grade".
I'm not sure how to solve the question. Can anyone help me?