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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!