Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Moving Objects Databases

Authors: Ralf Hartmut Güting, Markus Schneider

1st Edition

0120887991, 978-0120887996

More Books

Students also viewed these Databases questions

Question

14-18 Compare the two major types of planning and control tools.

Answered: 1 week ago