Question: 7. (20 pts) Write a C++ application, in the file wordcount.cpp that reads standard input and displays a word count table to standard output. Normalize
7. (20 pts) Write a C++ application, in the file wordcount.cpp that reads standard input and displays a word count table to standard output. Normalize and lowercase the file text. Sort the output by number of occurrences descending. For example, if the input file is: The tests, my lord, have failed! FAILED have the tests, they have. then your program should output have 3 failed 2 tests 2 the 2 lord 1 my 1 they 1 "Words" are made up of Unicode letters only. Every other character is ignored. Use whatever wonderful functions you can find from the standard library. (In fact, one of the learning objectives for this problem is that you gain experience by looking through the standard library.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
