Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is for java. Create an application that uses a class to convert number grades to letter grades and another class for data validation. Use
This is for java.
Create an application that uses a class to convert number grades to letter grades and another class for data validation.
- Use a class named Grade to store the data for each grade. This class should include these three methods:
public void setNumber(int number)
public int getNumber()
public String getLetter()
- The Grade class should have two constructors. The first one should accept no parameters and set the initial value of the number instance variable to zero. The second should accept an integer value and use it to set the initial value of the number instance variable.
- The grading criteria are as follows:
A 88-100 B 80-87 C 67-79 D 60-67 F <60
- Overload the getString() method of the Console class to add the ability to require a string value, and to require one of two specified string values.
- When the user responds to the Continue prompt, the application should only accept a value of y or n.
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