Question: Code in java please We are going to be building a simple but challenging word game. Run the WordMorph.java program. It doesn't do much yet
Code in java please
We are going to be building a simple but challenging word game. Run the WordMorph.java program. It doesn't do much yet except print instructions and ask the user to type in a word. You are going to fill out this skeleton program step by step. In the code you will find comments where the answers for each exercise will go. So far the starting code just prints instructions and asks the user to type in a word. In Exercise 1 you will use a switch statement to print different messages based on the length of the word that the user entered. Copy and paste the code below into the matching place in the program and then fill in the blanks with code to make it work. Your message for the default case should include the length of their word, just like all of the other cases. // Exercise 1: calculate the word's length // and use a switch statement to print a message about the difficulty int len = switch (len) case 1: System.out.println ("There aren't enough 1 letter words"); break; case 2: System.out.println("It is easy to get stuck with 2 letter words"); break; case 3: System.out.println("3 letter words are a good place to start"); break; case 4: System.out.println("4 letter words are the most fun"); break; ; default: Test it out and make sure all the cases work before continuing. Note: When you run the program, you need to click on the console window before typing your input. Many time while writing this lab, I kept forgetting to do that and typed spurious characters into my program. Don't bother putting each of the little exercises into your solutions document. At the end you will just copy the entire final program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
