Question: Please help with this C++ program! I do not need help specifically with the required functions at the end. Those are just for your reference.

Please help with this C++ program! I do not need help specifically with the required functions at the end. Those are just for your reference. Please write a program that does the tasks asked.Please help with this C++ program! I do not need help specificallywith the required functions at the end. Those are just for yourreference. Please write a program that does the tasks asked. Please read

all directions for the assignment carefully. This write-up contains both the detailsof what your program needs to do as well as implementation requirements

Please read all directions for the assignment carefully. This write-up contains both the details of what your program needs to do as well as implementation requirements for how the functionality needs to be implemented. What your program needs to do There is one test file on Moodle - HungerGames edit.txt that contain the full text from Hunger Games Book 1. We have pre-processed the file to remove all punctuation and down-cased all words. Your program needs to read in the.txt file, with the name of the file to open set as a command-line argument. Your program needs to store the unique words found in the file in a dynamically allocated array and calculate and output the following information: The top n words (n is also a command-line argument) and the number of times each word was found The total number of unique words in the file . The total number of words in the file The number of array doublings needed to store all unique words in the file Example: Running your program using: ./Assignment2 10 HungerGames_edit.txt ignoreWords.txt would return the 10 most common words in the file HungerGames edit.txt and should produce the following results 682 - is 492 - peeta 479 - its Please read all directions for the assignment carefully. This write-up contains both the details of what your program needs to do as well as implementation requirements for how the functionality needs to be implemented. What your program needs to do There is one test file on Moodle - HungerGames edit.txt that contain the full text from Hunger Games Book 1. We have pre-processed the file to remove all punctuation and down-cased all words. Your program needs to read in the.txt file, with the name of the file to open set as a command-line argument. Your program needs to store the unique words found in the file in a dynamically allocated array and calculate and output the following information: The top n words (n is also a command-line argument) and the number of times each word was found The total number of unique words in the file . The total number of words in the file The number of array doublings needed to store all unique words in the file Example: Running your program using: ./Assignment2 10 HungerGames_edit.txt ignoreWords.txt would return the 10 most common words in the file HungerGames edit.txt and should produce the following results 682 - is 492 - peeta 479 - its

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!