Monday, May 24, 2010

How do I write a computer program that will allow me to do the pythagoreon theorem in java?

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

How do I write a computer program that will allow me to do the pythagoreon theorem in java?
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.
Reply: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.
Reply:www.google.com





search:pythagoreon theorem with Java..


good luck

flowers online

No comments:

Post a Comment