Question: I need the answer in Java format using the methods that I attached below the question 9. (10 points) [Not part of Lab 06] Write

 I need the answer in Java format using the methods thatI attached below the question 9. (10 points) [Not part of Lab06] Write a method named play in the GuessingGame class. It shouldaccept one parameter, which is a Scanner from which it can readinput. It should not return anything. It should do the following: Geta secret word. . Create a blank revealed word of the samelength. Clear the console with 30 blank lines o Repeat the following

I need the answer in Java format using the methods that I attached below the question

9. (10 points) [Not part of Lab 06] Write a method named play in the GuessingGame class. It should accept one parameter, which is a Scanner from which it can read input. It should not return anything. It should do the following: Get a secret word. . Create a blank revealed word of the same length. Clear the console with 30 blank lines o Repeat the following steps while the revealed word and secret word do not match -Show the revealed word to the player (exact text below) Get a guess. -Replace the revealed word with a version in which the guessed letter has been revealed. . Congratulate the player on discovering the word (exact text below) . Tell the user how many guesses they made (exact text below) Here is what a run of the play method might look like: Enter the secret word: book . 30 blank lines Your knowledge so far: __.. Guess a letter: o Your knowledge so far: 00 Guess a letter: k Your knowledge so far: _OOK Guess a letter: c Your knowledge so far: _OOK Guess a letter: 1 Your knowledge so far: _OOK

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!