The print out needs a space before the number following the name.
Type: Posts; User: Norm
The print out needs a space before the number following the name.
Sorry, what file? The args for the method are shown in the posted code.
Which of the args are you asking about?
If you want to see what is in each of the arrays being passed, use this statement...
Pass it in the call to the method:
public static void calcGrades(int[] score, char[] grade, int max)
Its the last arg passed to the method.
Then what value should max have for the code in post#8 to work as desired?
Does that mean the code is executing correctly? This statement is always true, so the the grade should be 'A'
if ((score[i] <= max) && (score[i] >= max-2))
if ((score[i] <= max) && (score[i] >= max-2))
what are the values of score[i] and max?
What prints out for the values of the variables used to control the assigning of the grade?
How does the score get converted to a letter grade? Have you tried debugging that code to see what it is doing and why it gives the letter grade it does? Add some println() statements to print out...