Description: 1. Read the name of the text file from the console.
2. Read in a text file, line by line.
3. Split each line into words, discarding punctuation and folding all letters into
lower case.
4. Store the unique words and maintain a count of each different word.
5. Sort the words first by decreasing count and, if there are multiple words with
the same count, alphabetically.
6. Output the first ten words in the sorted list, along with their counts.
7. Output the last ten words in the list, along with their counts.
To Search:
File list (Check if you may need any files):
Ass1
Ass1\.cproject
Ass1\.project
Ass1\.settings
Ass1\.settings\org.eclipse.cdt.managedbuilder.core.prefs
Ass1\ass1.cpp
Ass1\correct.txt
Ass1\Debug
Ass1\Debug\Ass1.exe
Ass1\Debug\ass1.o
Ass1\t.txt
Ass1\test.txt