Nice try. No one here will give you a complete lot of code for what you have asked. We are not here to do the job for you.
If you have some code which you need help with them I'm sure everyone will have a look and try and help out.
As haxtbh has pointed out, these forums are for HELPING you fix code you've already tried and are having issues with. We aren't here to write your code, whether for a project or homework, from scratch. We can only help you if you help us by making an attempt.