| Letter Grade (without +/-) | Number grade |
| A | 4 |
| B | 3 |
| C | 2 |
| D | 1 |
| F | 0 |
/** * Constructs a Grade object from a string * Precondition: s is a legal grade (A+, A, A-, B+, B, B-, C+, C, C-, D+, D, D-, F) * @param s the string describing the letter grade */ public Grade(String s)
public class Grade implements Measurable, Formattable
{
. . .
public void formatTo(Formatter formatter, int flags, int width, int precision)
{
. . .
}
}As in P11.17, ignore the flags and precision.Submit a zip file hw9_xyzw with the files