This is a previously posted Topic, no one would reply, so please excuse my repetitive post. Here is the original post. Please help me. This program is due tonight and I am struggling very much with it.
It seems to me that you close the file before you process it. You need to move all the if...else statements right after you print the grade. Otherwise inside the loop the totalpoints is always zero.