Search:

Type: Posts; User: Norm

Search: Search took 0.13 seconds.

  1. Thread: help with grades

    by Norm
    Replies
    17
    Views
    1,431

    [SOLVED] Re: help with grades

    The print out needs a space before the number following the name.
  2. Thread: help with grades

    by Norm
    Replies
    17
    Views
    1,431

    [SOLVED] Re: help with grades

    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...
  3. Thread: help with grades

    by Norm
    Replies
    17
    Views
    1,431

    [SOLVED] Re: help with grades

    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.
  4. Thread: help with grades

    by Norm
    Replies
    17
    Views
    1,431

    [SOLVED] Re: help with grades

    Then what value should max have for the code in post#8 to work as desired?
  5. Thread: help with grades

    by Norm
    Replies
    17
    Views
    1,431

    [SOLVED] Re: help with grades

    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))
  6. Thread: help with grades

    by Norm
    Replies
    17
    Views
    1,431

    [SOLVED] Re: help with grades

    if ((score[i] <= max) && (score[i] >= max-2))
    what are the values of score[i] and max?
  7. Thread: help with grades

    by Norm
    Replies
    17
    Views
    1,431

    [SOLVED] Re: help with grades

    What prints out for the values of the variables used to control the assigning of the grade?
  8. Thread: help with grades

    by Norm
    Replies
    17
    Views
    1,431

    [SOLVED] Re: help with grades

    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...
Results 1 to 8 of 8