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

Thread: I need your help ASAP :/

  1. #1
    Junior Member
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I need your help ASAP :/

    Hello dear members, I am writing this new post, and not sure if I am in the correct section but forgive me as I am new to this forum.
    Yes, I registered as almost all members here "Homework" -_-

    But the idea was to learn first then to post, LOL .. anyways I need you urgently as I need this for tomorrow and its supposed as I am the best on my class so I cant let them down

    Its a simple and short script but I cant make it As far as I remember the teacher said to use the WHILE method (Not sure if we need this)
    Its about to find the mechanik energy, not sure if I am right but in physic to do this we must do like this "Potencial energy + kinetic energy".

    Potencial energy formula: MxGxH
    kinetic energy formula: MV²:2

    If someone of you guys can help me on this, it would be more than a big big big favour ^_^


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,895
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: I need your help ASAP :/

    What do you have so far (code, thoughts, etc.)?

    Also, what is the problem you're trying to solve (specifically)? You gave a vague description of what you think you're suppose to do, but there's not enough information for us to provide any meaningful suggestions.

  3. #3
    Junior Member
    Join Date
    Oct 2012
    Posts
    19
    My Mood
    Sleepy
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: I need your help ASAP :/

    I guess you mean that the user puts in the values and the program calculates it?

     
    System.out.print("Potencial energy (" + m*g*h + ") + kinetic energy (" + m*v*v + ") = " + m*g*h + m*v*v + " J");

    Is that what you're trying to achieve? If so, I helped you out more than I should have, ofcourse, user input for the values may be a good idea.

    How old are you anyway? I can't figure how you're the best in your class and still don't manage that.

  4. #4
    Junior Member
    Join Date
    Nov 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I need your help ASAP :/

    @pepzi999, Thank you for your help, yes this is what I wanted to do, Actually the problem was that I got confused if I need to use the while method or not, I am 20 thought, and we just started learning java, this may be the 9th time we take lessons.Well thank you again for all your help, best regards.

Similar Threads

  1. NEED HELP ASAP PLEASE
    By jaisan72980 in forum What's Wrong With My Code?
    Replies: 3
    Last Post: November 13th, 2011, 11:29 AM
  2. Need help!!! Asap PLEASE!!!!
    By choloboy in forum What's Wrong With My Code?
    Replies: 5
    Last Post: November 11th, 2011, 06:28 AM
  3. Need help ASAP!!!!
    By Swiper in forum What's Wrong With My Code?
    Replies: 9
    Last Post: August 12th, 2011, 06:41 PM
  4. NEED HELP ASAP!!
    By JavaStudent_09 in forum What's Wrong With My Code?
    Replies: 7
    Last Post: August 18th, 2010, 07:33 PM
  5. NEED HELP ASAP PLEASE!!!
    By mbm4ever in forum What's Wrong With My Code?
    Replies: 8
    Last Post: August 12th, 2010, 07:01 PM