All the details and sample files, figures are included. I only want the code in

All the details and sample files, figures are included. I only want the code in

All the details and sample files, figures are included. I only want the code in C and that is it. PLEASE make sure you get the correct output just like in the figures i provided also include the line numbers, which is the first column from the left.
IF i DO NOT get the desired output, I will have to request a REFUND, so please make sure you go over it and understand, If you are familiar with system software, it is even better.