Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a simple spell check program (while loops, testing forsubstrings, etc.). I

ID: 3612983 • Letter: W

Question

Write a simple spell check program (while loops, testing forsubstrings, etc.). It should do the following:


1) Ask for input and dictionary strings where the dictionary one isin alphabetical order.

2) For every word not in the dictionary, the program should say"Unknown word <word> found".

3) After going through the entire input string, the program shouldsay how many misspelled words there are.

4) It should be case insensitive (so convert to all lower case, forexample) and within a line, a word is white space delimited. Itshould also be able to handle if there are two white spaces insteadof just one.

5) Don't worry too much about punctuation, i.e. "car." should countas a different word than "car".

Write a simple spell check program (while loops, testing forsubstrings, etc.). It should do the following:


1) Ask for input and dictionary strings where the dictionary one isin alphabetical order.

2) For every word not in the dictionary, the program should say"Unknown word <word> found".

3) After going through the entire input string, the program shouldsay how many misspelled words there are.

4) It should be case insensitive (so convert to all lower case, forexample) and within a line, a word is white space delimited. Itshould also be able to handle if there are two white spaces insteadof just one.

5) Don't worry too much about punctuation, i.e. "car." should countas a different word than "car".

Explanation / Answer

please rate - thanks how's this? this works even if dictionary not in alphabetical order. I'vegot the impression you have to enter the dictionary in alphabeticalorder that one has me confused because of what you've messaged me import java.util.*; public class dictionarystrings{ public static void main(String[] args) {String dict,text,word; int num=0,end=0,i; Scanner in=new Scanner(System.in); System.out.println("enter the dictionary"); dict=in.nextLine(); dict=dict.toLowerCase(); System.out.println("enter the words to check for"); text=in.nextLine(); text=text.toLowerCase(); i=0; while(i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote