Question
Create a new Java class called: WordFind public class WordFind Write a Java application program that will create and display a very simple word find
Create a new Java class called: WordFind
public class WordFind
Write a Java application program that will create and display a very simple word find puzzle.
Begin by asking the user to enter three-letter word, a four-letter word, a five-letter word and another four-letter word (in that order!). Store each word in a separate String variable.
Once the user has entered all four items, use the appropriate String method to change the user's items to all uppercase letters.
Next create the word find puzzle according to the following rules:
Add the letters "WQTLK" to the beginning of the first word.
Add the letters "RXM" to the beginning of the second word.
Add the letter "P" to the end of the second word.
Add the letter "F" to the beginning of the third word.
Add the letters "MB" to the end of the third word.
Add the letters "QYLA" to the end of the fourth word.
Once the entire puzzle has been assembled, display the puzzle to the screen.
The following is an example of what your MIGHT see on the screen when your program runs. The exact output depends on what values that the user types in while the program runs. The user's inputted values are shown below in italics:
Enter a three-letter word: spa Enter a four-letter word: time Enter a five-letter word: glove Enter another four-letter word: wash Here is your word find puzzle: WQTLKSPA RXMTIMEP FGLOVEMB WASHQYLA
Special requirements for this program:
You MUST store the output puzzle in a SINGLE String variable named puzzle.
Use the concatination operator to "piece together" the letters of the puzzle, storing them into puzzle variable.
Once the puzzle has been created, use ONE println statement to print the contents of the output variable.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started