i've got this last year question from my senior. i've tried to solve it on my own but i think it's not suit with my level. so, anyone could please help me to write the codes as my final exam is coming soon. thank you

here i attach together all the related files of the question
Attachment 8787
Attachment 8788

kindly post the example of codes to [email protected]