Question: How to solve this problem using c++ 4. [40 points] File ilo Write a complete program starting from #include. A file called input.txt contains words

 How to solve this problem using c++ 4. [40 points] File

How to solve this problem using c++

4. [40 points] File ilo Write a complete program starting from #include. A file called input.txt contains words separated by spaces. We will assume everything is lowercase and there are no punctuations. Ask the user for a file name for an output file. Write to the output file the list of words occurring in the input.txt file and how many times each word occurred. Each word should only appear once in the list. Format the output so that the width of the first column is 10 and the width of the second column is 4. Sample output: aardvark 5 bruin 9 hello 2 You may write any functions and classes you wish. You may use any vectors or any algorithms from the algorithm library. Next two pages are left blank to give you plenty of room It is a good idea to pseudo code your idea here on this page. Even if you make some mistakes you can get partial credit if your pseudo code is reasonable

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!