Question: The full question is on the picture, please write two full class to get the sample output thank u The Game class will have the

The full question is on the picture,

please write two full class to get the sample output

thank u

The Game class will have the following attributes:

The secret phrase (an array of char)

The disguised phrase (another array of char), in which each unknown letter in the secret phrase

is replaced with a blank line ( _ ). For example, if the secret phrase is computer science and the letters c and s have been guessed, the disguised phrase would print as

C_ _ _ _ _ _ _ SC _ _ _ C_

The number of guesses made

The number of incorrect guesses

The jackpot amount

The full question is on the picture, please write two full class

to get the sample output thank u The Game class will havethe following attributes: The secret phrase (an array of char) The disguisedphrase (another array of char), in which each unknown letter in thesecret phrase is replaced with a blank line ( _ ). Forexample, if the secret phrase is computer science and the letters cand s have been guessed, the disguised phrase would print as C_

Question:1 Consider a class that could be used to play a computer version of the long running TV game Wheel of Fortune http://www.wheeloffortune.com/ On the TV game, there are three players who try and guess a phrase. They get to spin a wheel with different dollar amounts (e.g., $200, $500, $1000, etc). Then they guess a letter. If the letter is in the hidden phrase they get the value that they spun multiplied by the number of the guessed letter in the phrase. For example, if the person spun $200 and guessed 'S' for the hidden phrase "Star Wars", the person would win $400 because there were two letters 'S' in the phrase. The winner of the game is the person who guesses the phrase first and they win all the money that they accumulated during the game. You are going to write a very simple text version of this game. There will only be one player and three dollar amounts ($200, S500 and S1000) that the player will 'spin' before guessing a letter. The player's jackpot (the amount of money they win on each guess) will keep increasing while they guess letters up to a maximum of 6 letter guesses. If they select a letter that is not in the phrase they will not win any money on that turn (but it counts as a turn) and they cannot try to guess the phrase. The game continues until one of the following occurs 1) the player correctly guesses the phrase and they win their 'jackpot, or 2) the player incorrectly guesses the phrase in which case the game is over, the phrase will be revealed and the player does not win any money, or 3) the player uses their last of 6 letter guesses - the player gets to select no more than 6 letters, and if they cannot guess the phrase after the 6th letter guess then the game is over, the phrase is revealed, and the player does not win any money

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!