Course Syllabus for C++ with OOP 34-IT-2045C: Computer Programming II Assignment 07 Spring 2021 In this assignment you will implement a simple spell checker method with a Hashtable. Use the word list...

1 answer below »
Please see attached files. Thanks.


Course Syllabus for C++ with OOP 34-IT-2045C: Computer Programming II Assignment 07 Spring 2021 In this assignment you will implement a simple spell checker method with a Hashtable. Use the word list file provided here. You will need a data structure to hold the word list: a hashTable! The key is the dictionary word and the value can be blank. A class called WordProcessor has been provided for you. In the class, this method has been provided for you: Hashtable readWords(String fileName) The method reads from the file into a Hashtable and returns that Hashtable. You should finish this method in the WordProcessor class: String checkSpelling(String target, Hashtable words) The method looks up target in your word list. If it finds a match, return than match. If it doesn’t find a match, use a simple algorithm to look for a possible typo: Loop from i = the first character to the second to last character in target // Note that the loop starts each iteration with the original target Transpose the ith character and the i+1 character of target Look up the string in your word list If found, return that string End Loop If no matches were found, return an empty string. For example, if you call the method with “fsih” then is should return “fish” . If you call the method with “Puypp” it should return an empty string because more then two letters were transposed. Your checkSpelling method should be case-insensitive. It will be easier to do that by upper-casing or lower-casing all the words in the Hashtable as you read them from the file. You should know how to name the .zip file. Use the main method provided. When I run it I don’t want to type anything. The main provides its’ own test cases. Study all the classes in the project. There’s stuff for you to do in each one. Submit your zipped project to Canvas. Improperly named, documented, or formatted submissions will not be graded. UC Clermont College Bill Nicholson
Answered Same DayMar 24, 2021

Answer To: Course Syllabus for C++ with OOP 34-IT-2045C: Computer Programming II Assignment 07 Spring 2021 In...

Sudipta answered on Mar 24 2021
159 Votes
Assignment07Spring2021/.classpath

    
    
    
Assignment07Spring2021/.project

     Assignment07
Spring2021
    
    
    
    
        
             org.eclipse.jdt.core.javabuilder
            
            
        
    
    
        ...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here