Question: Currently having trouble with part of a JAVA project. I'm posting the introduction for the project below as well for context. The part I'm having
Currently having trouble with part of a JAVA project. I'm posting the introduction for the project below as well for context. The part I'm having trouble with is in the third photo. Ideally the code needs to be written within a method in order to not clutter up the Main class.


Introduction "Wheel of Fortune" is game in which contestants solve word puzzles, similar to those used in Hangman, to win cash determined by spinning a giant carnival wheel. This project will simulate the Wheel of Fortune game, by allowing user to solve up to 5 phrases (that you select), simulate spinning a wheel by randomly selecting from 8 possible outcomes, and allow the user to interact with game through the menu options below: 1. Buy a vowel One vowel that appears in the phrase is revealed to the Player. 2. Guess a consonant - Players guess if a consonant (non-vowel) appears in the word. . Solve -Players attempt to solve the phrase 4. Exit - Allows player to exit the game. The game continues until the player guesses all the 5 phrases correctly (through solving or filling them in letter by letter), until the player goes bankrupt (money is $0 or less), or the player chooses to exit the game At the end of the game, the player wins the money that they have accumulated and a relevant message is displayed. You will need to use everything you've learned so far to complete this project, including loops, arrays, classes, objects, and methods Introduction "Wheel of Fortune" is game in which contestants solve word puzzles, similar to those used in Hangman, to win cash determined by spinning a giant carnival wheel. This project will simulate the Wheel of Fortune game, by allowing user to solve up to 5 phrases (that you select), simulate spinning a wheel by randomly selecting from 8 possible outcomes, and allow the user to interact with game through the menu options below: 1. Buy a vowel One vowel that appears in the phrase is revealed to the Player. 2. Guess a consonant - Players guess if a consonant (non-vowel) appears in the word. . Solve -Players attempt to solve the phrase 4. Exit - Allows player to exit the game. The game continues until the player guesses all the 5 phrases correctly (through solving or filling them in letter by letter), until the player goes bankrupt (money is $0 or less), or the player chooses to exit the game At the end of the game, the player wins the money that they have accumulated and a relevant message is displayed. You will need to use everything you've learned so far to complete this project, including loops, arrays, classes, objects, and methods
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
