Welcome to the forum! Please read this topic to learn how to post code correctly and other useful info for new members.

Start with what you know and code/test that. Come back with that code and...