a tool that will read as an input a text file and then perform several word analytics tasks
(1) An operation to determine the total number of words in a text file (i.e., the length of the file).
(2) An operation to determine the total number of unique words in a text file.
(3) An operation to determine the total number of occurrences of a particular word.
(4) An operation to determine the total number of words with a particular length.
5) An operation to display the unique words and their occurrences sorted by the total occurrences of each word (from the most frequent to the least).
(6) An operation to display the locations of the occurrences of a word starting from the top of the text file (i.e., as a list of line and word positions). Note that every new-line character ‘\n’ indicates the end of a line.
(7) An operation to examine if two words are occurring adjacent to each other in the file (at least one occurrence of both words is needed to satisfy this operation).