You need to compute the values before you can display them.
For testing you can use the println() method/
When all the values have been computed, then worry about how to display them.
Type: Posts; User: Norm
You need to compute the values before you can display them.
For testing you can use the println() method/
When all the values have been computed, then worry about how to display them.
What are you asking about?
Start with the next step after the total has been computed.
Is that compute the average? Given the total, what else does the code need to have to compute the average?
For example print out the value of total after it has been computed:
System.out.println("total="+total);
What should the program do next after it has computed the total?
Now you need to learn how to debug the code. I use the println() method to print out the values of variables as the program executes so you can see what the computer sees when it executes the...
That is not allowed. Methods can not be nested one inside of another.
Methods in a class must be peers.
Look at the tutorial for how to code methods:...
A call to a constructor MUST use the exact same number and type of arguments that are shown in the definition. There can be more than one constructor, but the call to the constructor must match one...
You need to copy the error message exactly so it is correct and complete. What you posted has a misspelling: founr that shows you typed it instead of copying it. You left off the ^ which is...
There must be an error message printed on the console somewhere that you need to copy the full text of the error message and paste it here so we can see it.
Either make numOfGrades static
or create an instance of the class and use the reference to that instance to call its method.
copy the full text of the error messages and paste it here.
Please copy the full text of the error messages and paste it here.
Did you have a question?