public enum LetterGrade
{
   F      (0.0, "F") ,
   D      (1.0, "D") ,
   DPLUS  (1.3, "D+"),
   CMINUS (1.7, "C-"),
   C      (2.0, "C") ,
   CPLUS  (2.3, "C+"),
   BMINUS (2.7, "B-"),
   B      (3.0, "B") ,
   BPLUS  (3.3, "B+"),
   AMINUS (3.7, "A-"),
   A      (4.0, "A") ;
   
   private final double     points;
   private final String     symbol;
   
   

   LetterGrade(double points, String symbol)
   {
      this.points = points;      
      this.symbol = symbol;      
   }
	
	public String toString ()
	{
	  return this.symbol;
	}
	
    public double pointsGrade(LetterGrade grade)
    {
       double          points;
       
       if      (grade.equals(LetterGrade.A))      points = 4.0;
       else if (grade.equals(LetterGrade.AMINUS)) points = 3.7;
       else if (grade.equals(LetterGrade.BPLUS))  points = 3.3;
       else if (grade.equals(LetterGrade.B))      points = 3.0;
       else if (grade.equals(LetterGrade.BMINUS)) points = 2.7;
       else if (grade.equals(LetterGrade.CPLUS))  points = 2.3;
       else if (grade.equals(LetterGrade.C))      points = 2.0;
       else if (grade.equals(LetterGrade.CMINUS)) points = 1.7;
       else if (grade.equals(LetterGrade.DPLUS))  points = 1.3;
       else if (grade.equals(LetterGrade.D))      points = 1.0;
       else                                       points = 0.0;

       return points;    
    }


}
