Lucas Stelljes wrote:
Hi Lucas,
Welcome to coderanch.
In quotes you can see the mistakes you did.
1) In for loop given condition,whether counter <=5 or <5.what is the condition for counter
If you use counter=5,Type mismatch error will occur.
2)what is the datatype of average and gradecounter in your program.
whether its string or int or boolean.Straight away you used in your program.
you should not do like that
It will throw error.
3)Inside gpaPts method everything you did is wrong.what is tat A,B,C,A-
If you want to check the outcome of grade==A.
use this way grade.equals("A") or if you think the grade may be A or a.
Then use this way grade.equalsIgnoreCase("A");
P.S: Sorry to say this Read Java first.
Regards,
Sriram.V