>Can anybody give me a solution to do this? Sounds like homework and nobody is going to do it for you. However, if you show us what you have so far we couuld offer help. What parts are you having problems with? Do you have your algorithm (pseudo-code) written out? Read More
Edited by Raul Perez: arranging words.
Edited by Raul Perez: accuracy