We do not write code for others on this forum. But, like I said, gladly give guidance, suggestions for improvement or help correcting errors in code.
That said, someone may be able to help you with some pseudo code. But for that you will need to provide a description of the algorithm you want. It may be in form of written steps, but better yet a diagram / flow chart.
That said, someone may be able to help you with some pseudo code. But for that you will need to provide a description of the algorithm you want. It may be in form of written steps, but better yet a diagram / flow chart.