Search:

Type: Posts; User: Norm

Search: Search took 0.23 seconds.

  1. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    Then you need to make a list of the steps the program needs to take to do it.
  2. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    Work on the steps to solve the problem first. When you have worked out the logic, THEN work on coding it.
  3. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    Looks like you need to work on some logic for this part.
  4. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    Sorry, I don't know what the next step is. Can you explain?
  5. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    For testing reduce the size of the array to 3 and enter 3 different numbers like 1 22 55
    then look at what the program prints out and see if there is something that stands out.
  6. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    I'm done for tonight. Back tomorrow.
  7. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    Did you add the numbers that were printed out? Was the sum different from what the code computed?
    Double check the loop and the index used for the array.
  8. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    Print out the contents of the array so you can see what you are adding up. Use the Arrays class's toString method to format the array for printing:

    System.out.println("an ID "+...
  9. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    You need to see how to write a for loop:
    The for Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)
  10. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    You assign the value read in to a slot in the array at an index:
    anArray[theIdx] = theValue;
    then you increment the index so the next time the value will go into the next slot.
    In a for loop, the...
  11. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    Have you passed that to the compiler? It will tell you if there are problems. I could miss something that the compiler wouldn't.
  12. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    I left out the word "to": use a loop to scan through the array.
  13. Replies
    25
    Views
    2,544

    Re: Fixing this grade finder program?

    Look at using an array to hold the grades that are read in. After reading all the grades, you will be able to use a loop to scan through the array and add them.
Results 1 to 13 of 13