Question: Use C++ to create the following class, and only include iostream, fstream, or stringstream libraries if possible. Part I In this part of the assignment,

Use C++ to create the following class, and only include iostream, fstream, or stringstream libraries if possible.

Use C++ to create the following class, and only include iostream, fstream,

or stringstream libraries if possible. Part I In this part of the

assignment, you are to create a class, SpellChecker. You will define some

Part I In this part of the assignment, you are to create a class, SpellChecker. You will define some class data members, member methods and helper functions. The class methods will be used to check the spelling of words and assess the word count across documents. Elements of this assignment are intentionally vague; at this point in the semester, you should be able to make your own decisions about appropriate data structures for storing and looking up data, as well as defining helper functions. You can assume that your code will never be storing more than 10,000 valid or corrected words. SpellChecker should have at least the following Public members: e string language: the name of the language this spell checker is using (i.e. "English", "Spanish", "Italian", "Hindi", ...) SpellChecker should have at least the following Private members: e char start marker: used for marking the beginning of an unknown word in a string e char end marker: used for marking the end of an unknown word. SpellChecker should have three constructors; . Default Constructor, the one with no arguments. * Second constructor that takes a string for the object's language * Third constructor that takes a string for the object's language and two filenames as parameters. The first filename specifies the file with correctly spelled words and the second filename specifies the misspelled words with their corrections. You will be dealing with two different files . The data in the first filename supplies a list of correctly spelled words, one word per line aardvark apple acquire . The data in the second filename contains a list of misspelled words and their correct spellings. The word and its correction are separated by a tab character (t) teh todayy tork the today torque Part I In this part of the assignment, you are to create a class, SpellChecker. You will define some class data members, member methods and helper functions. The class methods will be used to check the spelling of words and assess the word count across documents. Elements of this assignment are intentionally vague; at this point in the semester, you should be able to make your own decisions about appropriate data structures for storing and looking up data, as well as defining helper functions. You can assume that your code will never be storing more than 10,000 valid or corrected words. SpellChecker should have at least the following Public members: e string language: the name of the language this spell checker is using (i.e. "English", "Spanish", "Italian", "Hindi", ...) SpellChecker should have at least the following Private members: e char start marker: used for marking the beginning of an unknown word in a string e char end marker: used for marking the end of an unknown word. SpellChecker should have three constructors; . Default Constructor, the one with no arguments. * Second constructor that takes a string for the object's language * Third constructor that takes a string for the object's language and two filenames as parameters. The first filename specifies the file with correctly spelled words and the second filename specifies the misspelled words with their corrections. You will be dealing with two different files . The data in the first filename supplies a list of correctly spelled words, one word per line aardvark apple acquire . The data in the second filename contains a list of misspelled words and their correct spellings. The word and its correction are separated by a tab character (t) teh todayy tork the today torque

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!