|StuartS has given you good advice. It would be wise to follow it.|
Learn how to do an internet search. This will be an enormous benefit to you in programming, computer problem solving, and much more besides. Asking people to do your work for you will get you nowhere.
Nobody is going to write this code for you.