This project is a simple C program designed to analyze the frequency of lowercase letters in a text file. It prompts the user to input a filename, then reads the file character by character, counting the occurrences of each lowercase letter. Once the file is processed, it displays the total appearances of each lowercase letter in the file.
This project is a simple C program designed to analyze the frequency of lowercase letters in a text file. It prompts the user to input a filename, then reads the file character by character, counting the occurrences of each lowercase letter. Once the file is processed, it displays the total appearances of each lowercase letter in the file.
- Clone the Repository:
git clone https://github.com/your-username/letter-frequency-counter.git
- Navigate to the Project Directory:
cd letter-frequency-counter
- Compile the Program:
gcc letter_frequency.c -o letter_frequency
- Run the Program:
./letter_frequency
- Follow the On-Screen Instructions:
- Enter the filename you want to analyze when prompted.
- The program will display the total appearances of each lowercase letter in the file.
Enter a filename you want to test: sample.txt
Total Appearances of Lowercase Letters in file 'sample.txt' :
Letter 'a' appears '5' times
Letter 'b' appears '3' times
Letter 'c' appears '0' times
Letter 'd' appears '1' times
...
Contributions are welcome! If you'd like to improve this program, feel free to fork the repository and submit a pull request with your changes.