Question: C++: Write a program that reads a string and outputs the number of times each lower case letter appears in it. The program should process

C++: Write a program that reads a string and outputs the number of times each lower case letter appears in it.

The program should process only characters in the string itself, in other words you do not need the whole alphabet here.

Functions needed:

string getString() - this function returns the string to the calling function that will be analyzed. The string is entered by the user.

int countChar(char, string ) - this function takes a character and a string and returns the number of times the character is found in the string

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!