Hello. I'm new to
Java and English.
This program is for calculating a student's GPA with given grade (e.g., A, B, C, D, and F) entered by user.
But according to my code, I wonder why student's GPA is 0.0 regardless of any inputs.
I tried many times and found there's a problem when assigning a varible 'sum'.
I think it's value is always zero.
The problem is, I can't find the way to modify it correctly.
Could somebody help me find what is the problem and how can I mend it?
Here's my code. Variable 'sum' appears in the for statement.