Your program, call it spec.cc, should first prompt the user for the name of the
ID: 3626639 • Letter: Y
Question
Your program, call it spec.cc, should first prompt the user for the name of the dictionary file, read in the words from that file and store them for future reference. It should then prompt the user for the name of the text file which is to be spell checked. Each word in that file should be read in and compared to the dictionary for known words. If the word read in does not appear in the dictionary, then the user should be notified and given the option of (1) skipping that occurrence of the word, (2) ignoring all occurrences of the word, or (3) adding the word to the dictionary. Choosing to ignore all occurrences or add the word to the dictionary should mean that any future occurrences of the word will not be flagged as misspellings. At the end, the possibly updated dictionary should be written back out, overwriting the initial dictionary.The WordStreamIterator class can be used to read words from a file. And with some modification, the WordList class can be used to store and access words. Two modifications must be made to this class however. FIrst, a member function must be added that allows you to determine if a particular word is stored in the list. Second, another Print Function must be added that allows for the words in the list to be output to a file. This function can have the same name(Print), but should have a string as a parameter, the name of the out put file. Also, remove the statement in the Print function which prints the total number of words in the file
Explanation / Answer
this is the program u want #include #include #include using namespace std; ; int check(string str , string arr[],int length) { int choise; static int count=0; static string ignored[50]; for(int i=0;iRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.