In this programming assignment, students need to count the frequency of each alphabet letter (a-z, total 26) and five special characters ('.', ,, :, ; and !) in all the .txt files under a given directory.
You will be provided a zero.zip which includes the following files:
makefile
count.h
specialcharcount.c
alphabetcount.c
testalphabetcount.c
testspecialcharcount.c
Your assignment is to write/modify code in the following files
count.h
makefile
alphabetcount.c to count the frequency of alphabet letters; and
specialcharcount.c to count the frequency of special characters.
Note: Feel free to do any change of these files (fill the code, create new functions and etc). You also can create new .h and .c files if needed.
The instructor will use the following files to test your code, so please DON'T modify these two files:
testalphabetcount.c
testspecialcharcount.c
your program must execute correctly on Edoras machine, the instructor will type the following commands to test your code:
make testalphabet // generate testalphabet executable file
make testspecial // generate testspecial executable file
./testalphabet // run the testalphabet program to count frequency of alphabet
letters, the result will be stored in the file result.txt under result folder
./testspecial // run the testspecial program to count frequency of special characgters, the result will be stored in the file specialresult.txt under result folder.