Chapter 6: Problem 15
(Hypotenuse Calculations) Define a method hypotenuse that calculates the hypotenuse of a right triangle when the lengths of 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 an application that reads values for sidel and side 2 and performs the calculation with the hypotenuse method. Use Math methods pow and sqrt to determine the length of the hypotenuse for each of the triangles in Fig. \(6.15 .[\) Note: Class Math also provides method hypot to perform this calculation.]
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.