c programming homework 4

please find the homework attached below and follow the instructions carefully

please provide notes for each step to help me understand what you were doing at each one.

please create the code from scratch i dont want plagirasim

thanks