Question: The general overview of the program would be, the program takes the name of a text file as an input and goes through each line

The general overview of the program would be, the program takes the name of a text file as an input and goes through each line in the file to detect which letter occurs the most frequently in each line. After going through all lines, the output will show which letter occurred most frequently, in a certain amount of lines, as described in the picture. I want to get this program setup in C++ mainly first, then I need to apply the same concept to an object oriented language such as Java. thank you!
The output should look like: the most frequent characters in lines are: e' i , t', 'o' and 'r' Mer is most frequent in: Mi is most frequent in: Nt is most frequent in: is most frequent in: r is most frequent in: 27 lines 20 lines 14 lines 9 lines 8 linee
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
