Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

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, 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 (you can download it from Canvas). You must not
make any changes to this file.
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions