Quote (garbo @ Nov 6 2011 04:07pm)
number grade from 0-100 to A,b,c,d,f
pretty much i need to assign
0-59 to F
60-69 to D
70-79 to C
80-89 to B
90-100 to A
you need to assign the whole range of values to the letter?
what exactly are you doing?
you could have an array for each grade to contain the entire range of values and then check each letter grade for the percentage grade that you receive
or you could just umbrella some if statements like:
Code
if(grade < 59)
print('F');
else if(grade<69)
print('D');
else if(grade <
etc etc