Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a spell checking program which uses a dictionary of words (input by the us

ID: 3535551 • Letter: W

Question

Write a spell checking program which uses a dictionary of words (input by the user as a string) to find misspelled words in a second string, the test string. Your program should prompt the user for the input string and the dictionary string. A valid dictionary string contains an alphabetized list of words. Functional requirements: For each word in the input string, your program should search the dictionary file for the given word. If the word is not in the dictionary, you program should print the message "Unknown word found" to standard output. After traversing the entire input string, your program should print a message describing the total number of misspelled words in the string. A dictionary string may contain words in uppercase, lowercase, or a mixture of both. The test string may also combine upper and lower case letters. You program should recognize words regardless of case. So if "dog" is in the dictionary string, the word "dOG" should be recognized as a valid word. Similarly, if "CaT" is in the dictionary string, the word "cat" she be recognized as a valid word. Within a string, a word is a white-space delimited string of characters. So the last word in "Hello world!" is "world!".

Explanation / Answer

#include #include #include #include string words; using namespace std; int main ( int argc, char *argv[] ) { if ( argc != 2 ) cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote