In C please. No C++ or Python.
3Program:Input/Process/Output
INPUT Your program should read in the data bit strings from datal.dat
PROCESS)Your program should generate the Hamming7,4,Hamming15,11,or Hamming31,26 codewords for the data bit strings. (OUTPUTYour program should write the codewords to a file Codewords.dat
NOTE:Not following this process (reading from a file,process Hamming codeword,and writing the results to a different file will result in a failing grade.
4InputFile Format
Input files should use the following format, consisting of data strings of size 4,11, and 26 bits,one bit string per line.datal.dat: 1100 11010110101 11110000110 1001 11100010101110110101011111
5Output File Format
The output file should list the Hamming codewords in the same order as the data in the datal dat file one codeword per line,