0

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.

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by BestJewSinceJC
0

What makes it incomplete can you verify please? Thank you for your reply.

Cheers.

0

Sorry, I thought you had links that weren't showing up. But what values can the number be between? That's something you need to know before you can think about programming. Otherwise, statistically, you have a 0% chance of guessing the number (if the number can be any integer).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.