Menu

[Solved]Java Program Allowing User Play Word Game Two Different Lists Words Set Misspelled Words S Q37116152

a java program allowing the user to play a word game. Thereshould be two different lists of words: a set of misspelled wordsand a set of words spelled correctly.

Problem: you are to write a java program allowing the user to play a word game. There should be two different lists of words:Requirements: 1. 2. Must have two Java files. Must create an outline 3. Must break down the problem into smaller problems? Ca

Problem: 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: Your program randomly selects a word from the list (it could be a word that is misspelled or a word that is spelled correctly. The word will be displayed to the user. User needs to decide if the word is spelled correctly or not. If the user’s answer is correct then he/she will gain one point otherwise he/she will lose a point. 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. 1. How to write your program: 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 Filling in you arrays by reading from the files Use a variable to keep track of the score Use notepad to create two files 1. 2. 3. 4. 5. A file that contains a list of the correct words. One word per line a. b. 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. A file that contains a list of incorrect words. One word per line 6. 7. 8. 9. Requirements: 1. 2. Must have two Java files. Must create an outline 3. Must break down the problem into smaller problems? Can you list the smaller problems: a. Write a method for displaying the description of your program b. 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? c. d. e. f. Method play to start the game Write the algorithm for this program before start coding Appropriate identifier naming Comments Proper indentation Follow the naming conventions 4. 5. 6. 7. 8. Show transcribed image text Problem: 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: Your program randomly selects a word from the list (it could be a word that is misspelled or a word that is spelled correctly. The word will be displayed to the user. User needs to decide if the word is spelled correctly or not. If the user’s answer is correct then he/she will gain one point otherwise he/she will lose a point. 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. 1. How to write your program: 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 Filling in you arrays by reading from the files Use a variable to keep track of the score Use notepad to create two files 1. 2. 3. 4. 5. A file that contains a list of the correct words. One word per line a. b. 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. A file that contains a list of incorrect words. One word per line 6. 7. 8. 9.
Requirements: 1. 2. Must have two Java files. Must create an outline 3. Must break down the problem into smaller problems? Can you list the smaller problems: a. Write a method for displaying the description of your program b. 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? c. d. e. f. Method play to start the game Write the algorithm for this program before start coding Appropriate identifier naming Comments Proper indentation Follow the naming conventions 4. 5. 6. 7. 8.

Expert Answer


Answer to a java program allowing the user to play a word game. There should be two different lists of words: a set of misspelled … . . .

OR


Leave a Reply

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