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.
Re: I need your help ASAP :/
I guess you mean that the user puts in the values and the program calculates it?
Code :
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.
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.