Define a method Hypotenuse that calculates the length of the hypotenuse of a right triangle when the other two sides are given. The method should take two arguments of type Double and return the hypotenuse as a Double. Incorporate this method into a Windows application that reads integer values for side1and side2 from TextBoxes and performs the calculation with the Hypotenuse method. Determine the length of the hypotenuse for each of the following triangles: Triangle Side 1 Side 2
1 3.0 4.0
2 5.0 12.0
3 8.0 15.0
Reverend Jim 5,224 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.