Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 - itsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started