Welcome to the forum.
That's not how this forum works. This is not a "gimme-the-codez" forum. How this forum works in your explain clearly what your objective is, then show us your code where you are trying to get to that objective, and then you tell us what problem(s) your are encountering trying to get there. We then try to guide you towards fixing the problem (without just spoonfeeding you the answer).