Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: i need help.....

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    1
    My Mood
    Fine
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default i need help.....

    Using the steps for Problem Solving - generate for the following problem:
    a) test plan AND
    b) write and test the program code in Java using at least two classes one
    class GuessGame that implements the game and one class GamePlay that contains the a
    main method to execute the game.
    We want to implement a "Guess the Number" game. Your program should randomly choose a
    number to be guessed by the user between 1 and 1000. You should prompt the user to
    enter a guess and then output the message "invalid guess ", "you guessed too high",
    "you guessed too low" or "Congratulations you are correct". Your program should
    keep track of the number of guesses the user took to guess the correct number and
    display this to the user when they guess correctly. The program should continue until
    the user indicates they wish to quit playing.

  2. #2
    Super Moderator curmudgeon's Avatar
    Join Date
    Aug 2012
    Posts
    1,130
    My Mood
    Cynical
    Thanks
    64
    Thanked 139 Times in 134 Posts

    Default Re: i need help.....

    Thank you for posting your assignment -- it looks to be quite an interesting one. I think I speak for all in wishing you luck in completing this successfully. If you need our help, please feel free to ask any questions you may have about this assignment or your code attempts to solve it.