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.
Type: Posts; User: Norm
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.
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...
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...
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...
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...
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?
Have you solved it?
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.