Menu

[Solved]Lab 7 Complete Lab 7 Prep Design Game First Creating Following 1 Algorithm 2 Hierarchy Cha Q37112888

java!!
Lab 7: Complete the Lab 7 prep: Design the game by first creating the following 1) Algorithm 2) Hierarchy chart 3) FlowChartLab 7 Prep Your task is to write a spell check game. In prep towards this task, please do the following two Things in todaysLab 7: Complete the Lab 7 prep: Design the game by first creating the following 1) Algorithm 2) Hierarchy chart 3) FlowChart The code needs to have good programming style, adequate modularity, documentation. Your game should allow the user to make as many guesses as he/she likes. The game terminates when the user exits or runs out of words to guess. So this is a step up from the prep where you needed to do 10 tries only Words are randomly picked from the correct and wrong array The game is not case sensitive. A score is kept. Every correct guess is awarded a point and the final tally is displayed when the game is over. The following methods are at a minimum- you can have more. Chose parameters as needed: 1) Method play: while user would like to play, keeps playing the game 2) Method inputArrays: fills the arrays with data 3) Method validatelnput: validate the user input 4) Method getGuess: randomly picks the guess word This method will need two random numbers, one to select the array and Another to select a word from the chosen array. You will need to make sure that a word is not repeated and when all words are used up, the user is asked to leave the game. Lab 7 Prep Your task is to write a spell check game. In prep towards this task, please do the following two Things in todays lab: Create two text files (using notepad) called correct.txt and wrong.txt. Correct.txt should contain a list of 10 words that are correctly spelt and wrong.txt contains 15 incorrectly spelt words. The files should have one word per line Write the following methods a) Public static Stringl inputArrays(Scanner inputFile, int size)//to read and input arrays 1. 2. from files Public static String getGuess(String [I, String[I) //uses random number to pick a guess word //from either array. You cannot guess the same word twice b) Write a main driver program that calls inputArrays to fill arrays and uses a for loop to Call getGuess) 10 times. The main progam should display the guess word. Show transcribed image text Lab 7: Complete the Lab 7 prep: Design the game by first creating the following 1) Algorithm 2) Hierarchy chart 3) FlowChart The code needs to have good programming style, adequate modularity, documentation. Your game should allow the user to make as many guesses as he/she likes. The game terminates when the user exits or runs out of words to guess. So this is a step up from the prep where you needed to do 10 tries only Words are randomly picked from the correct and wrong array The game is not case sensitive. A score is kept. Every correct guess is awarded a point and the final tally is displayed when the game is over. The following methods are at a minimum- you can have more. Chose parameters as needed: 1) Method play: while user would like to play, keeps playing the game 2) Method inputArrays: fills the arrays with data 3) Method validatelnput: validate the user input 4) Method getGuess: randomly picks the guess word This method will need two random numbers, one to select the array and Another to select a word from the chosen array. You will need to make sure that a word is not repeated and when all words are used up, the user is asked to leave the game.
Lab 7 Prep Your task is to write a spell check game. In prep towards this task, please do the following two Things in todays lab: Create two text files (using notepad) called correct.txt and wrong.txt. Correct.txt should contain a list of 10 words that are correctly spelt and wrong.txt contains 15 incorrectly spelt words. The files should have one word per line Write the following methods a) Public static Stringl inputArrays(Scanner inputFile, int size)//to read and input arrays 1. 2. from files Public static String getGuess(String [I, String[I) //uses random number to pick a guess word //from either array. You cannot guess the same word twice b) Write a main driver program that calls inputArrays to fill arrays and uses a for loop to Call getGuess) 10 times. The main progam should display the guess word.

Expert Answer


Answer to Lab 7: Complete the Lab 7 prep: Design the game by first creating the following 1) Algorithm 2) Hierarchy chart 3) FlowC… . . .

OR


Leave a Reply

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