Fill This Form To Receive Instant Help
Homework answers / question archive / Implement the function calcWordFrequencies() that uses a single prompt to read a list of words (separated by spaces)
Implement the function calcWordFrequencies() that uses a single prompt to read a list of words (separated by spaces). Then, the function outputs those words and their frequencies to the console.
Example: If the prompt input is: hey hi Mark hi mark The console output is:
hey 1
hi 2
Mark 1
hi 2
mark 1