Question: Im having a hard time coding this im using java programming im in chapter 4 right now. I already have the file i need to

Im having a hard time coding this im using java programming im in chapter 4 right now. I already have the file i need to do it im having a hard time setting it up someone please help me

1) Determine if a word entered by the user is spelled correctly. A word is considered correct if it's found in dictionary.txt (see required output to get file).

these are the input and output that are suppose to come out i already have the dictionary.txt i just don't know hoe to set it up someone please help me

Standard Input Files in the same directory
glimmerENTER helloENTER worldENTER testENTER tommorrowENTER tomorrowENTER recluseENTER habittatENTER exit
  • dictionary.txt
Output Enter word to spellcheck (or exit to end) glimmer is spelled correctly. Enter word to spellcheck (or exit to end) hello is spelled correctly. Enter word to spellcheck (or exit to end) world is spelled correctly. Enter word to spellcheck (or exit to end) test is spelled correctly. Enter word to spellcheck (or exit to end) tommorrow is not spelled correctly. Enter word to spellcheck (or exit to end) tomorrow is spelled correctly. Enter word to spellcheck (or exit to end) recluse is spelled correctly. Enter word to spellcheck (or exit to end) habittat is not spelled correctly. Enter word to spellcheck (or exit to end) Ending program... 

Test Case 2

Standard Input Files in the same directory
friesENTER abcENTER appleENTER zzzzzzzzzENTER aENTER exit
  • dictionary.txt
Output Enter word to spellcheck (or exit to end) fries is spelled correctly. Enter word to spellcheck (or exit to end) abc is not spelled correctly. Enter word to spellcheck (or exit to end) apple is spelled correctly. Enter word to spellcheck (or exit to end) zzzzzzzzz is not spelled correctly. Enter word to spellcheck (or exit to end) a is spelled correctly. Enter word to spellcheck (or exit to end) Ending program... 

Test Case 3

Standard Input Files in the same directory
rockingENTER chairENTER rocking chairENTER hieroglyphicsENTER lieENTER detectorENTER lie detectorENTER exit
  • dictionary.txt
Output Enter word to spellcheck (or exit to end) rocking is not spelled correctly. Enter word to spellcheck (or exit to end) chair is spelled correctly. Enter word to spellcheck (or exit to end) rocking chair is spelled correctly. Enter word to spellcheck (or exit to end) hieroglyphics is spelled correctly. Enter word to spellcheck (or exit to end) lie is spelled correctly. Enter word to spellcheck (or exit to end) detector is spelled correctly. Enter word to spellcheck (or exit to end) lie detector is spelled correctly. Enter word to spellcheck (or exit to end) Ending program... 

Test Case 4

Standard Input Files in the same directory
mailboxENTER mailingENTER miling listENTER mailanENTER mail orderENTER maimENTER exit
  • dictionary.txt
Output Enter word to spellcheck (or exit to end) mailbox is spelled correctly. Enter word to spellcheck (or exit to end) mailing is spelled correctly. Enter word to spellcheck (or exit to end) miling list is not spelled correctly. Enter word to spellcheck (or exit to end) mailan is not spelled correctly. Enter word to spellcheck (or exit to end) mail order is spelled correctly. Enter word to spellcheck (or exit to end) maim is spelled correctly. Enter word to spellcheck (or exit to end) Ending program... 

Test Case 5

Standard Input Files in the same directory
NEENTER neardENTER nearbyENTER nearlyENTER nearsghtedENTER neatENTER exit
  • dictionary.txt
Output Enter word to spellcheck (or exit to end) NE is spelled correctly. Enter word to spellcheck (or exit to end) neard is not spelled correctly. Enter word to spellcheck (or exit to end) nearby is spelled correctly. Enter word to spellcheck (or exit to end) nearly is spelled correctly. Enter word to spellcheck (or exit to end) nearsghted is not spelled correctly. Enter word to spellcheck (or exit to end) neat is spelled correctly. Enter word to spellcheck (or exit to end) Ending program... 

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!