Welcome to Stack Overflow. SO is not a code writing service. Open letter to students with homework problems and How to ask homework questions: Make a genuine attempt yourself, show your code, ask a specific question. Please also take the tour and read How to Ask before proceeding further on this site. — kaylum 26 secs ago