Hey guys,
I'm new here. Hello. I have a question for you huys. I've been stuck here for more than 2 hours figuring this out.
Problem
Create a menu-driven "Guess the Number Game" that allows the player to choose from two options:
Version 1 - allows unlimited guesses
Version 2 - allows 5 guesses
Specifications
Create a GuessTheNumber class with the following members
Instance variables
keyBd : Scanner
myGuess, numberToGuess, count : Integer
Methods
GuessTheNumber( guess : Integer )
hint: initialize numberToGuess to guess, count to 0, create keyboard Scanner
showInstructions()
hint: displays "how to play the game" instructions for each version
version1()
hint: Guess3.java attached
version2()
hint: Guess4.java attached
Create a MenuGuess class that uses a menu to test the GuessTheNumber class
The menu will have the fallowing options
Instructions
Version 1
Version 2
Exit
Can anyone help me out here? I am totally confused and desperate. It is not on my textbook and I don't know anywhere else to search on.
Thank you very much.