[Solved]Write Java Program Allowing User Play Word Game Two Different Lists Words Set Misspelled W Q37250123
Asapplease make it neat and simple
You are to write a java program allowing the user to play a word game. There should be two different lists of words: a set of misspelled words and a set of words spelled correctly. Here are the steps to play the game: 1. Your program randomly selects a word from the list (it could be a word that is misspelled or a word that is spelled correctly. 2. The word will be displayed to the user 3. User needs to decide if the word is spelled correctly or not 4. ·f the user’s answer is correct then he/she wil gain one point otherwise he/she will lose a point. It is possible to have a negative score. 5. Ask the user if he/she wants to play again. If the answer is no, display the score If the answer is yes go to the step 1 How to write your program 1. You can use arrays of strings to store the words. How many arrays do you need? 2. You need to have two files for the words: Misspelled words and correct words. Each file should have 10 words Fill in you arrays by reading from the fles 4. S. Use a variable to keep track of the score Create two files . A file that contains a list of the correct words. One word per line. 10 words total b. Afile that contains a list of incorrect words. One ward per line. 10 words total The randomly selected word cannot be repeated. Therefore you need to keep track of the words already shown to the user Use the scanner class to interact with the user Use the Random class to generate random numbers to pick a word from the list.How many random numbers do you need? Do you need two random numbers? Why 6. 7. 8. 9. Use while loop to repeat the game as long as the user is interested Requirements 1 Must have two Java files, one as a helper class and the other as your driver class 2. Must create an outline. Must break down the problem into smaller problems. List the smaller problems in your outline. Write a method for displaying the description of your program a. b. Write a method for filling in the array from the files. Call this method two times. What are the parameters for this method? c. A method to validate the users input d. A method to pick a random word from the list. What are the parameters for this method? e. Write a method called play. Do you need a oop? For loop or while loop? How many loops do you need? f. Method play to start the game 4 Write the algorithm for this program before starting any coding 5. Appropriate identifier naming 6. Comments 7. Proper indentation & Follow the naming conventions Show transcribed image text You are to write a java program allowing the user to play a word game. There should be two different lists of words: a set of misspelled words and a set of words spelled correctly. Here are the steps to play the game: 1. Your program randomly selects a word from the list (it could be a word that is misspelled or a word that is spelled correctly. 2. The word will be displayed to the user 3. User needs to decide if the word is spelled correctly or not 4. ·f the user’s answer is correct then he/she wil gain one point otherwise he/she will lose a point. It is possible to have a negative score. 5. Ask the user if he/she wants to play again. If the answer is no, display the score If the answer is yes go to the step 1 How to write your program 1. You can use arrays of strings to store the words. How many arrays do you need? 2. You need to have two files for the words: Misspelled words and correct words. Each file should have 10 words Fill in you arrays by reading from the fles 4. S. Use a variable to keep track of the score Create two files . A file that contains a list of the correct words. One word per line. 10 words total b. Afile that contains a list of incorrect words. One ward per line. 10 words total The randomly selected word cannot be repeated. Therefore you need to keep track of the words already shown to the user Use the scanner class to interact with the user Use the Random class to generate random numbers to pick a word from the list.How many random numbers do you need? Do you need two random numbers? Why 6. 7. 8. 9. Use while loop to repeat the game as long as the user is interested Requirements 1 Must have two Java files, one as a helper class and the other as your driver class 2. Must create an outline. Must break down the problem into smaller problems. List the smaller problems in your outline. Write a method for displaying the description of your program a. b. Write a method for filling in the array from the files. Call this method two times. What are the parameters for this method? c. A method to validate the users input d. A method to pick a random word from the list. What are the parameters for this method? e. Write a method called play. Do you need a oop? For loop or while loop? How many loops do you need? f. Method play to start the game 4 Write the algorithm for this program before starting any coding 5. Appropriate identifier naming 6. Comments 7. Proper indentation & Follow the naming conventions
Expert Answer
Answer to You are to write a java program allowing the user to play a word game. There should be two different lists of words: a s… . . .
OR

