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 3 of 3

Thread: complete NOOB so confused..i need help with a program please!!!!

  1. #1
    Junior Member
    Join Date
    Feb 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default complete NOOB so confused..i need help with a program please!!!!

    okay guys so i just started my first java class to become a programmer. im 16. i have no idea how to do any of this stuff. my teacher gave us an assignment in java and told us to do as much as we could and that he would show us how to do it next week.. heres the program

    "for this assignment you will write an application that plays a "guess my number" game using GUI elements. the game requirements are:

    --The program should select a random number 1 to 1000. The program should then ask the user to guess a number from 1 to 1000. A JtextField can be used for the guesses.

    --After each guess is input, the background color of the box should change to either blue(for cold) or red(for hot) along with a label that tells the user if they were too high or too low. When the user finally guesses the right answer, the color should be green and the box should change to uneditable. The game should ask the user if they want to play again.

    At the end of each round of play, the number of guesses it took to get the number correct should be recorded, along with the time it took. When the user indicates that they would like to stop playing the game, the relent statistics should be displayed in a dialog box before the program ends..so the user knows for each round played, how many guesses it took and the time it took to get the right answer the should hit OK on this box to end the program and the game entirely ."


    so theres the program could any one help me?? help me write the code along with explaining the lines of code?


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    609
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: complete NOOB so confused..i need help with a program please!!!!

    Uhm, that is not a beginner's assignment. We will certainly not provide any code for you, you'll have to come up with code you've written and we can help you to improve it.
    Start simple, write some code that generates a random number between 1 and 1000. After that you read user input from the console. Then evaluate the user input. And so on.

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: complete NOOB so confused..i need help with a program please!!!!

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    What book are you using in class? Where are you in the book?

Similar Threads

  1. Replies: 2
    Last Post: June 29th, 2013, 03:47 AM
  2. A quick help to complete my program :D
    By azizmaiden in forum What's Wrong With My Code?
    Replies: 3
    Last Post: March 12th, 2013, 08:01 PM
  3. A quick help to complete my program :D
    By azizmaiden in forum AWT / Java Swing
    Replies: 2
    Last Post: March 12th, 2013, 12:04 PM
  4. complete noob, direction needed pls.
    By delamer in forum Java Theory & Questions
    Replies: 3
    Last Post: October 13th, 2012, 01:54 PM
  5. Complete Noob -- A little help would be appreciated...
    By echmiel in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 5th, 2012, 05:31 PM