Write a simple spell check program (while loops, testing forsubstrings, etc.). I
ID: 3612983 • Letter: W
Question
Write a simple spell check program (while loops, testing forsubstrings, etc.). It should do the following:
1) Ask for input and dictionary strings where the dictionary one isin alphabetical order.
2) For every word not in the dictionary, the program should say"Unknown word <word> found".
3) After going through the entire input string, the program shouldsay how many misspelled words there are.
4) It should be case insensitive (so convert to all lower case, forexample) and within a line, a word is white space delimited. Itshould also be able to handle if there are two white spaces insteadof just one.
5) Don't worry too much about punctuation, i.e. "car." should countas a different word than "car".
Write a simple spell check program (while loops, testing forsubstrings, etc.). It should do the following:
1) Ask for input and dictionary strings where the dictionary one isin alphabetical order.
2) For every word not in the dictionary, the program should say"Unknown word <word> found".
3) After going through the entire input string, the program shouldsay how many misspelled words there are.
4) It should be case insensitive (so convert to all lower case, forexample) and within a line, a word is white space delimited. Itshould also be able to handle if there are two white spaces insteadof just one.
5) Don't worry too much about punctuation, i.e. "car." should countas a different word than "car".