Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!