Question: Please complete the given program to compile correctly using c++ Description: This program wil1 prompt the user for both an input and an /I output

Please complete the given program to compile correctly using c++ Description: ThisPlease complete the given program to compile correctly using c++

Description: This program wil1 prompt the user for both an input and an /I output file name. Afterwards, it will prompt for a target word // 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" AVAVIAVAVAVWAVVAVAVAVAVAVAVAWAVWIAVAVA #include #include(String using namespace std; //This function opens the output file to append the word and count on a new line bool WritewordToFile(string outputFile, string searchbiord, 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 searchiord) return 0; //The main function of the program. This gets the file names and the word to //search and then calls the functions. int main() string inputFile; string outputFile; string searchword; int wordCount; //get input file name //get output file name //get word to search do //search for word and get count WordCount = SearchFile(inputFile, searchWord); /frecord the word and count WriteviordToFile(outputFile, searchWord, wordCount) //get word to search while(search klord !- "exit"); return 0

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!