Need help in processing function

Haha, you are not looking for help, you are looking for someone to do your homework…

Nobody on this forum will help you unless you provide some code showing what you have tried and explaining what is the problem that you face.

Please consider reading this post: