Hi @Fatima ,
Please correct me if I am wrong, but it sounds like this is an academic task/homework, unfortunately we cannot do people's academic tasks/homework for you.
If you have some code for your program that you are having difficulties with, then someone may be able to give you some advise/help, but we cannot write programs/code from scratch for others.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Best regards,
Leon