Question: Write a program that can check the spelling of all words in a text file. It should prompt the user to enter a file name,
Question 2. Spell Checker Write a program that can check the spelling of all words in a text fle. It should prompt the user to enter a file name, and then read each word of that file and check whether it is contained in a word list. A full word list is stored in the file words. txt fyou can download it trom Canvas). You must not make any changes to this file. The program should find out all words that are not contained in the word lint. Use the given test file test brt and find the incorrect words then write to a fle named results bot. Important tips: you need to find a way to deal with the finglish capitalization rules. For example, the word "the" exists in the flle words. txt but "The" doesn't. See examples below: Speing 2023 Imitnucter: Dr, saeed Sample input text fle 3iriut tot - Nattepad File fold fomat Vew lielp Mary had a 111tle lanb, its fleece was white as snow, And every wheere that Mary went, the lamb was sure to go. He followed her to school one day, that was against the rule. It made the childdren laugh and play, to seee a lamb at school. And so the teacher turned hin out, but still he 1 ingered near. And waitted patiently about, till Mary did appaer. And then he ran to her, and laid bies head upon her are. As if he sald "I'm not afrald, you"11 ketp me froe al1 hara
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
