Write a program to calculate the frequency co8unts of variouscharacters and othe
ID: 3617887 • Letter: W
Question
Write a program to calculate the frequency co8unts of variouscharacters and other items: 1) Obtain file names for both input and output from theuser. It is a function call. Don't open this file for inputand output immediately. 2) Calculate the frequencies for each letter in the alphabetfrom A through Z (do not need to care about lowercase oruppercase). 3) Calculate the frequcies of the white space in theprogram. 4) Calculate the number of uppercase and lowercaseletters. 5) Write the results to a new file specified by theuser. 6) Output file should look similar to the format below(thenumbers of course sepend on your file): letter Frequecnies: A 10 B 13 C 20 D 0 E 17 F 4 Rest of Letters Uppercase 50 Lowercase 17 WhiteSpace 10 Write a program to calculate the frequency co8unts of variouscharacters and other items: 1) Obtain file names for both input and output from theuser. It is a function call. Don't open this file for inputand output immediately. 2) Calculate the frequencies for each letter in the alphabetfrom A through Z (do not need to care about lowercase oruppercase). 3) Calculate the frequcies of the white space in theprogram. 4) Calculate the number of uppercase and lowercaseletters. 5) Write the results to a new file specified by theuser. 6) Output file should look similar to the format below(thenumbers of course sepend on your file): letter Frequecnies: A 10 B 13 C 20 D 0 E 17 F 4 Rest of Letters Uppercase 50 Lowercase 17 WhiteSpace 10Explanation / Answer
x.Xce="Courier">You can modify to get characters count. #include #include #include #include #include #include #include using namespace std; int main(void) { ifstream fin; ofstream fout; string filename; coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.