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.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

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

 

 

 

 

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.
Transcribed Image Text: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.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education