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...