Welcome to SO. Please note that this is not a free code writing service. Make a genuine attempt yourself and ask a specific question regarding your code. You might want to read Open letter to students with homework problems. — JASLP doesn't support the IES 29 secs ago