Using C programming language. Write a program that reads a text file, and calculates the frequency distribution of individual letters in the file. Upper and lower case letters are considered the same. Numbers and punctuation are ignored. The frequency value should be the percentage that particular letter occurs in relation to all letters. Thus, the output will have two columns, each row will show the letter, and it's frequency (neatly formatted). Your program should prompt for the file name, and handle the case where the file isn't found. Use at least one user defined function (even if it's trivial) that's defined in a separate file, and use a header file that contains the declaration.
Using C programming language.
Write a program that reads a text file, and calculates the frequency distribution of individual letters in the file.
Upper and lower case letters are considered the same. Numbers and punctuation are ignored.
The frequency value should be the percentage that particular letter occurs in relation to all letters. Thus, the output will have two columns, each row will show the letter, and it's frequency (neatly formatted).
Your program should prompt for the file name, and handle the case where the file isn't found.
Use at least one user defined function (even if it's trivial) that's defined in a separate file, and use a header file that contains the declaration.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images