Answered step by step
Verified Expert Solution
Link Copied!

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.image text in transcribedimage text in transcribedimage text in transcribed

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

More Books

Students also viewed these Databases questions

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago

Question

18. If you have power, then people will dislike and fear you.

Answered: 1 week ago