Hi,
I have a bit of as problem. This file should calculate cut-off grades and then re-print out the file containing student grades and assign grades A, B, C, and D to the three exam scores as well as the total scores. I have attached the code so that it's easier to read. As you can see, I have stored all my values in parallel arrays. The cut-off grades are printing out nicely. My problem is that , I have created two char variables grade1 and grade2(just to test) to convert the marks to grades. I am hoping to replicate the if and else(if it works) for the grade for the third exam, as well as the total(final) grade. My logic seems to make sense, but after repeatedly trying different scenarios, the program is assigning wrong grades(A, B,C and D) to the student marks. Could anyone point out what's wrong with my if and else statements? Thanks a lot....