Question: C++ Please Compute character frequency distribution: The program prompts the user for a second string that contains from 1 to 10 characters of interest, stores
C++ Please

Compute character frequency distribution: The program prompts the user for a second string that contains from 1 to 10 characters of interest, stores it in a char array, then dynamically creates an integer array to store the number of occurrences of each character in the first string. Remember to clean up your heap! Example: User enters "banana", then the string "an5", which is stored in a char array. The program creates an integer array containing the count for each character and then prints the distribution showing each character that was counted and its count: a) 3 n) 2 5) 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
