Question
C++ You will begin by prompting the user for the name of the input file. Your program will read the specified file the user chooses
C++
You will begin by prompting the user for the name of the input file. Your program will read the specified file the user chooses and will continue reading from that file until the EOF (end of file) character. Implement void count_letters(ifstream &, int*) function that reads a paragraph one character at a time and counts the frequency of each letter in that paragraph, disregarding upper/lower cases (only 26 possible characters):
After you determine the number of letters in that paragraph of the input file, prompt the user for the name of the output file for the letter count in that particular paragraph. You will implement void output_letters(ofstream &, int*) function to write the number of each letter found in the paragraph.
Note that the count_letters() function only counts for one paragraph. So if there are three paragraphs in the input file, there should be three corresponding output files.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started