write a code to implement text processing on the basic level. Select a text docu
ID: 3630278 • Letter: W
Question
write a code to implement text processing on the basic level.
Select a text document having at least 1500 words.
Convert all the words in lower case.
Remove “! @ # $ Y > , . ( *’” signs from the document.
Separate each word in that document on whitespace and count
How many times each word has occurred
Total number of words
User will be able to search any particular words from that document.
Implement linear search and binary search for searching on these words. User will enter the word that is to be searched.
Print the time for searching the word through both of the searching algorithms.
Solution Instructions:
Separate the header and cpp files
Make a “word” class
You can use a vector or dynamic arrays for the storage of words.
Explanation / Answer
Select a text document having at least 1500 words. Convert all the words in lower case. Remove “! @ # $ Y > , . ( *’” signs from the document. Separate each word in that document on whitespace and count How many times each word has occurred Total number of words User will be able to search any particular words from that document. Implement linear search and binary search for searching on these words. User will enter the word that is to be searched. Print the time for searching the word through both of the searching algorithms. Solution Instructions: Separate the header and cpp files Make a “word” class You can use a vector or dynamic arrays for the storage of words.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.