I hope you get it working. Feel free to post more questions if you have any.
Type: Posts; User: jps
I hope you get it working. Feel free to post more questions if you have any.
It looks like the code is doing what you wrote it to do. Which is not what you wanted. The algorithm is not the solution to the problem.
Go back to step 2 and figure out a way to get what you want...
I see a somewhat clear description of the problem to be solved.
The next step is to decide how to solve it.
After you have a plan of attack, you can draw up pseudo code.
Pseudo code then easily...