c programming question 14

This question is a C programming question, need to using Linux to finish the programming. The program will using plagiarism detection software(ex: MOSS) to check, so its must be your own work. Before you start with this assignment, make sure to carefully read the attach pdf file.