Program 5. Spell Checker Write a program that employs the four letter word dictionary to check the spelling of an input word (test word) You will need to save the dictionary file (Located on the Data Canvas Page) to a folder on your computer. For this program you will prompt the user to enter a four letter word (or four characters). Then using a loop read each word from the dictionary and compare it to the input test word. If there is a match then you have spellchecked the word. Write a message to the screen indicating that the word was spelled correctly. If you do not find the word in the dictionary (no match) then write a message to the screen indicating that the test word is not spelled correctly. Show output for the following test words: bird, lake, zoom, and xxyt. NOTE: You may use a loop to repeatedly test a series of words if you like instead of running the program four separate times. If you do this you will need to reset the dictionary file after each word.
In C++.
Data canvas is a file with bunch of random words.
Data canvas:
aahs aals abas abba abbe abed abet able ably abos abri abut abye abys
aced aces ache achy acid acme acne acre acta acts acyl adds adit ados
adze aeon aero aery afar agar agas aged agee ager ages agha agin agio
agly agma agog agon ague ahed ahem ahis ahoy aide aids ails aims ains
airn airs airt airy aits ajar ajee akee akin alae alan alar alas alba
albs alec alee alef ales alfa alga alif alit alky alls ally alma alme
alms aloe alow alps also alto alts alum amah amas ambo amen amia amid
amie amin amir amis ammo amok amps amus amyl anal anas ands anes anew anga anil anis ankh anna anoa anon ansa anta ante anti ants anus aped aper apes apex apod apos apps apse aqua arak arbs arch arco arcs area
ares arfs aria arid aril arks arms army arse arts arty arum arvo aryl
asci asea ashy asks asps atap ates atma atom atop auks auld aunt aura
auto aver aves avid avos avow away awed awee awes awls awns awny awol
awry axal axed axel axes axil axis axle axon ayah ayes ayin azan azon
baal baas baba babe babu baby bach back bade bads baff bags baht bail
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images