English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i need to be know how to write this program by tomorrow.

2006-09-07 10:07:32 · 3 answers · asked by falinoutwithu 2 in Computers & Internet Programming & Design

3 answers

The problem with your question is that it does not give enough information.
That is not to say that I cannot produce the code.
The problem is that I do not know what you want or what level of code you want to produce.

Because of my level of knowledge and given your question I would fill in the gaps myself and produce for you a very complete answer.
This would be no help what so ever to you as it would be obvious to anyone that you did not write the code.

Starting with the basics.
The sum of the square of the sides of a right angled triangle are equal to the square of the hypotenuse.
This theorem has 2 different outputs.
Which one do you require?
If it is both then you need to tell the program which values you are giving.
If only one then the parameters are set and you just enter the values required to give you the answer.
The parameters are probably going to be lengths only so you will have to square the values.
There will be an addition or subtraction depending on which answer is required and then a square root will be required for the answer.

doubleX=Math.sqrt(doubleY);

I am sure that you can now work out the rest.

2006-09-07 11:08:32 · answer #1 · answered by AnalProgrammer 7 · 0 0

www.google.com

search:pythagoreon theorem with Java..
good luck

2006-09-07 17:12:05 · answer #2 · answered by Spacer 1 · 0 0

it is easy. just read your course notes and work with a classmate.

all you are really doing is one line of algebra. what kind of UI do you need? to enter in any values? what is the output required.

2006-09-07 17:13:21 · answer #3 · answered by the darkman 2 · 0 0

fedest.com, questions and answers