Spell Checker Problem In this exercise, you will create a simple spell checker program. Your program will have the follo

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Spell Checker Problem In this exercise, you will create a simple spell checker program. Your program will have the follo

Post by answerhappygod »

Spell Checker Problem In This Exercise You Will Create A Simple Spell Checker Program Your Program Will Have The Follo 1
Spell Checker Problem In This Exercise You Will Create A Simple Spell Checker Program Your Program Will Have The Follo 1 (56.14 KiB) Viewed 28 times
Spell Checker Problem In this exercise, you will create a simple spell checker program. Your program will have the following characteristics: • • . . . . . . Your program will be capable of reading multiple files to be spell checked from command line arguments. When your program starts up, you will read in the dictionary.txt file which contains a list of known words. Only read in this file once. Store these words in a HashSet data structure. Create a TreeSet to store any miss-spelled words that you find. For each file in the command line parameter list, print out the name of the file before reading in any words. For each file parse out each of the words in the file and check to see if the word is in the HashSet you created with the dictionary.txt words or its already in your list of miss-spelled words. If the word is in the dictionary HashSet or the miss-spelled word TreeSet then proceed to the next word. If the word is not in the dictionary or the miss-spelled word list, give your user 2 choices: Add the word to the HashSet dictionary, or add the word to the list of miss-spelled words. At the end of each file processed, dump out the list of miss-spelled words. When you then start to read in the next file, make sure you clear the list of miss- spelled words. Keep any words added to the dictionary HashSet.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply