Question: in c++ please Create a C++ program to read in all the words from a text file and group the words together. Your program should

 in c++ please Create a C++ program to read in allthe words from a text file and group the words together. Your

in c++ please

Create a C++ program to read in all the words from a text file and group the words together. Your program should read in each word and remove any extra punctuation. It should then store the word in a linked list, with a count of the number of times that word has appeared. Once all the words have been entered, it should sort the entries from most common to least common. Your program should write the results to a file showing in the count of each word, a space, and the word. 1. Input files - The input files contain text, including spaces and punctuation. First read in the words and remove all unnecessary punctuation. You should keep only the apostrophe (') and hyphen (-) as they can be part of valid words. For example: you're is a word and is distinct from you. It should not be processed as two "words": you and re. - The words should be stored in a Linked-List along with a count of the number of times the word occurs. - For simplicity, convert all words to upper-case to prevent miscounting of words at the start of a sentence. The words "They" and "they" are the same and should be counted together as "THEY". The words "let's" and "lets" are different. - The linked list should then be sorted in decreasing order by the number of occurrences of each word. - If two words have the same number of occurrences, they should be arranged in alphabetical order(AZ). 2. Output files - Output the count, followed by a single space, and then the word for all the entries in the linked list. - The words should be output in all-caps and include only valid punctuation. - Output the results in decreasing order of their occurrence in the file. If multiple words have the same number of occurrences, save them in alphabetical order. 3. Example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!