Menu

[Solved]Write Java Program Allowing User Play Word Game Two Different Lists Words Set Misspelled W Q37233216

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
ineed help with this java problem ASAPPlease!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. If the user’s answer is correct then he/she will gain one point otherwise he/she will lose a point It is possible to have a negative score. 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 5. How to write your program: 1. 2. You can use arrays of strings to store the words. How many arrays do you need? 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 files Use a variable to keep track of the score Create two files 3. 4. 5. a. A file that contains a list of the correct words. One word per line. 10 words total b. A file that contains a list of incorrect words. One word 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? Use while loop to repeat the game as long as the user is interested 6. 7. 8. 9. Requirements 1. 2. 3. Must have two Java files, one as a helper class and the other as your driver class. 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 Write a method for filling in the array from the files. Call this method two times. What are the parameters for this method? A method to validate the user’s input. A method to pick a random word from the list. What are the parameters for this method? Write a method called play. Do you need a loop? For loop or while loop? How many loops do you need? a. b. c. d. e. f. Method play to start the game . Write the algorithm for this program before starting any coding 5. Appropriate identifier naming 6. Comments 7. Proper indentation 8. 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. If the user’s answer is correct then he/she will gain one point otherwise he/she will lose a point It is possible to have a negative score. 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 5. How to write your program: 1. 2. You can use arrays of strings to store the words. How many arrays do you need? 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 files Use a variable to keep track of the score Create two files 3. 4. 5. a. A file that contains a list of the correct words. One word per line. 10 words total b. A file that contains a list of incorrect words. One word 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? Use while loop to repeat the game as long as the user is interested 6. 7. 8. 9. Requirements 1. 2. 3. Must have two Java files, one as a helper class and the other as your driver class. 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 Write a method for filling in the array from the files. Call this method two times. What are the parameters for this method? A method to validate the user’s input. A method to pick a random word from the list. What are the parameters for this method? Write a method called play. Do you need a loop? For loop or while loop? How many loops do you need? a. b. c. d. e. f. Method play to start the game . Write the algorithm for this program before starting any coding 5. Appropriate identifier naming 6. Comments 7. Proper indentation 8. 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


Leave a Reply

Your email address will not be published. Required fields are marked *