hw7 - whether or not the word is spelled correctly; in...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
HW#7 Interactive version of SpellChecker Modify the InClass SpellChecker exercise. Make it interactive, by writing a method spellCheckMany() that uses a loop to repeatedly ask for words to spell check. Here is an example terminal window output: ** Welcome to our Spell Checker ** Please enter a word (or press ENTER to quit): The program will read the input string. If it is empty, the method quits. Otherwise, the isSpelledCorrectly method is invoked, and some sentence is printed to the screen that says
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: whether or not the word is spelled correctly; in either case, the user is prompted again to Please enter a word (or press ENTER to quit):. Note that you can use an infinite loop for the command loop. When an empty string input is detected, you can break out of the loop. Be sure to thank the user for using your spell checker when the method quits....
View Full Document

Ask a homework question - tutors are online