Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that translates a letter grade into a number grade. Here are the specifications: - Letter grades are A, B, C, D, and
Write a program that translates a letter grade into a number grade. Here are the specifications: - Letter grades are A, B, C, D, and F - Their numeric equivalents are 100,85,75,65, and 0 - Letter grades can be followed by a + or - - + will add 3 points and - will subtract 3 points (there is no A+ or F-) - Use a class Grade with a method getNumericGrade - Objects of this class will accept two arguments, a char for letter grade and char for +,, or '. - Tips: when getting input, use the Scanner class - Take input in as a String and use the length () method of the String class to determine if the input has a+,, or no +/- - Use the charat () String method to get the letter grade and +/- (if there is one) and put them in char variables - If the input did not have a + or -, you can manually save a space char instead ' ' into your char variable - Link to String class API: String Class - Use a GradeTester.java program to test your class
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