Class Grade

java.lang.Object
  |
  +--Grade

public class Grade
extends java.lang.Object

A letter grade such as A+ or B-.


Constructor Summary
Grade(java.lang.String str)
          Constructs a grade.
 
Method Summary
 double numericValue()
          Computes the numeric value of the grade, e.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grade

public Grade(java.lang.String str)
Constructs a grade.
Parameters:
str - the letter grade such as "A+"
Method Detail

numericValue

public double numericValue()
Computes the numeric value of the grade, e.g. B+ = 3.3
Returns:
the numeric value