Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java Asap! Using a bag ADT to create a spell checker. The bag serves as a dictionary and contains a collection of 3000 correctly spelled

Java Asap! image text in transcribed
Using a bag ADT to create a spell checker. The bag serves as a dictionary and contains a collection of 3000 correctly spelled common English words. To see whether a word is spelled correctly, you see whether it is contained in the dictionary. Use this scheme to create a spell checker for a word. Step 1: Using the provide interface called BagInterface to implement a bag called First_Last_WordsBag where First is your first name and Last is your last name. (Hint: This implementation will be very similar to the implementation of ArrayBag class we went over in class) Step 2: Create a client program call First_Last_SpellChecker where First is your first name and Last is your last name. Your First_Last_SpellChecker will need to do the following tasks: 1. Create a bag of string called spellChecker 2. Read each word from the provided file called dictionary.txt and add it to the bag. Your program needs to count the total words were added to the bag and display it to the console. 3. Ask the user to enter an English word for spell checking then check to see if the word has a correct spelling based on the words contain in the spellChecker bag. If the word is spell correctly, then display to the console "Good spelling". If the word is not spelled correctly, then display to the console "Incorrect spelling". 4. Your program then needs to ask the user to see if they want to check for another word. If the user wants to do spell check for another word, then repeat task 3 above. If the user does not want to do spell check for another word, display "THANK YOU" and terminate the program. Step 3: Submit to Canvas both java files: First_Last_WordsBag.java and First_Last_SpellChecker.java

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions