Thursday, September 25, 2014

Spelman Grade percentage score to letter grade

Grade scale, grade distribution. 


Grade Scale for letter grade
Grade                Percentage Score
A                                  94 - 100
A-                                90 - 93.9
B+                                87 – 89.9
B                                  84 – 86.9
B-                                 80 – 83.9
C+                                76 – 79.9
C                                  70 – 75.9
C-                                 67 – 69.9
D+                                64 – 66.9
D                                  60 – 63.9

F                                    0 - 59.9





grade2letter = function(x){
  if(x>94){    ret='A'
  }else if (x >90) {    ret='A-'
  }else if (x >87 ){    ret = 'B+'
  }else if (x > 84){    ret = 'B'
  }else if (x >80){    ret = 'B-'
  }else if (x > 76){  ret = 'C+'  
  }else if (x > 70){ ret = 'C'  
  }else if (x > 67){ ret = 'C-'
  }else if (x > 64){ ret = 'D+'
  }else if (x > 60){ ret = 'D'
  }else {   ret = 'F'
  }
  return (ret)

}

No comments:

Post a Comment