How to implement a C++ program to perform a case-insensitve, frequency of occurance, analysis of words contained within a non-punctuated text. Only blank spaces between words, newline characters, and a single $ to mark end of text.
Example text: Yellow Blue Green BLUE Red GREEN yellow $
Example output: Word: Frequency:
GREEN 2 CONVERT ALL WORDS TO
RED 1 UPPERCASE
YELLOW 2 in alphabetical order