OVERVIEW

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.

ASSIGNMENT

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.
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.