I am completely confused at how to go about putting together a code for the following:


I must accept a string of up to 256 characters from the user, and display the following information about the string:

-The count, frequency, and probability of each character that appears in the string in decreasing order
-Compute the Shannon Entropy of the string in bits.


Thank you for taking the time to read this post, I greatly appreciate any and all help I can get.