Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Thread: Array problem

    by Norm
    Replies
    15
    Views
    1,038

    Re: Array problem

    Hardcoding the row index is one way
    another way is to search the amount columns starting at the top end and working down to the first row for the row that has the amount for the value in temp.
  2. Thread: Array problem

    by Norm
    Replies
    15
    Views
    1,038

    Re: Array problem

    It has to do with "finding" the row where the counter is that should be incremented.

    Given a value of temp = 410, on what row should the counter be incremented? How can the code set the value for...
  3. Thread: Array problem

    by Norm
    Replies
    15
    Views
    1,038

    Re: Array problem

    Is the "it" in that statement the "row" where the count is to be incremented?

    How will the code increment the correct count column where temp falls in the range defined by the amount column? The...
  4. Thread: Array problem

    by Norm
    Replies
    15
    Views
    1,038

    Re: Array problem

    OK. There is no need to keep track of what employee the data comes from. What is desired is a count of the different amounts earned.

    Is this what you are trying to do:
    For the two dims of the...
  5. Thread: Array problem

    by Norm
    Replies
    15
    Views
    1,038

    Re: Array problem

    How do you find the data for an employee? If the first dim is a counter and the second is the amount?

    Is this what you mean:
    there is a row for each employee (the first dimension)
    In a row, the...
  6. Thread: Array problem

    by Norm
    Replies
    15
    Views
    1,038

    Re: Array problem

    What are supposed to be the contents of the two dimensions in the total array?
    What is in the rows
    and what is in the column(s)?

    How should the code update the contents of the array?
  7. Thread: Array problem

    by Norm
    Replies
    15
    Views
    1,038

    Re: Array problem

    Have you solved it?
  8. Thread: Array problem

    by Norm
    Replies
    15
    Views
    1,038

    Re: Array counting problem

    Please explain what the problem is.
    Show the program's output and add some comments that explains what is wrong
    and show what the output should be.

    Moved to own thread.
Results 1 to 8 of 8