Answer:
Here the code is given as follows,
Explanation:
OUTPUT: Â
Message: AAAABBBCCDDDDDDDE Â
Number of symbols in the alphabet = 5 Â
Characters in the alphabet = A,B,C,D,E Â
Number of bits per symbol = 3 Â
Histogram showing the frequency of the symbols in the alphabet Â
A | **** Â
B | *** Â
C | ** Â
D | ******* Â
E | *