Hello Everone.
I hope somebody can 'pointer' me in the correct direction ...my problem is in char/ascii conversions
i want to outpuit a Letter grade for an average that i have caluculated in the previous fx- but i am unsure if i need to call
an "A" 65?. I will be returning this "grade" to a previous function that calls all of my calculations, and THEN drops them into their place in my struct. Hope that's enuf info...
I am getting 2 types of errors on the following Fx syntax
1.
'<=' : unsafe use of type 'bool' in operation
2.
'A' : undeclared identifier
Can someone perhaps tell me what is off about my expression?
This is one teeny piece of a huge puzzle i am working on and i 'm finding myself kinda stuck and help is much appreciated...and hopefully when i have a little more mouse-experience i will be able to return the favor someday....
Thx!
Mouse
Code:
char CalcGrade(double AV){
{
if (90<= AV <= 100)
return A;
else if (80<= AV <= 90)
return B;
else if (70<= AV <= 80)
return C;
else if (60<= AV <= 70)
return D;
else return F;
}
}