| in your calculategrade() you return an int, which is holding nothing, so when calling this you end up with nothing.
Same with your calculatescore(), it does alot of calculations, but it dosn't do anything with what it achieves, you have no way of getting hold of whatever it calculates.
If I can find the time today, I will try and make my version of this, but don't count on it. |