Please read the posting guidelines and do some research before posting questions like this. This is a quick answers forum, not a code provision service.
Try
these research resources[
^]. Once you have written some code, come back if you have a problem and we will do our best to help