Page 1 of 1

Q2 : Word Sub-sequences and Spell Checker. Write a C++ program where the user can, on the command line, nominate a filen

Posted: Fri Apr 29, 2022 7:08 am
by answerhappygod
Q2 : Word Sub-sequences and Spell Checker.
Write a C++ program where the user can, on the command line,
nominate a filename and an action. The action will be one of
following two.
Your program must also display timing information.
a) Read the file and list the top 10 occurrences of
sub-sequences of 2, 3, 4, and 5 letters with no consecutive
repeating letters. Your program must only read the file
once.
b) Allow the user to enter a word and if it is not in the
dictionary then display a list of words that are “close” to this
word. This simulates a basic spell checker. Your program must only
read the file once.