Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please try and complete the rest of the code for it to work as it should. Desription of how the code should be able to
Please try and complete the rest of the code for it to work as it should. Desription of how the code should be able to compile. Thank you
// Description: This program will prompt the user for both an input and an // output file name. Afterwards, it will prompt for a target word. /1 The program opens the file and reads all the words in the file and keeps // track of how many times that word appears. It writes (appends) the word // and the number to the output file. It continues this until the user // types "exit". #includedstream #include&fstream> #include string> using namespace std; //This function opens the output file to append the word and count on a new line bool WriteblordToFile (string outputFile, string searchWord, int wordCount) return false; //This function opens the inputfile and searches for the word. It returns //the number of times the word appears. It assumes that it is case sensitive //and that there is no punctuation. Thus, the simple extraction operator can //be used. int SearchFile(string inputFile, string searchWord) return 0
Step 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