I am using IF ELSE statement and i already included what's needed for setw, as I formatted everything else, but i cannot for the life of me get my IF ELSE statements to format properly and it's driving me nuts.
what i don't understand is how I was able to use setw, fixed, showpoint, etc without trouble but now all of sudden i can't format my last statements.
Your setw() is working just fine. However, you have some problems with your if statements.
Several grades do not get a letter grade at all. Why are you using .99 on your tests?
e.g. 100,80,70,60 all result in no grade because of the way you're testing.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Grade? 100
Grade? 0
F
Grade? 90
A
Grade? 80
Grade? 70
Grade? 60
Grade? 61
D
Grade? 50
F
Grade? -1
Press any key to continue . . .