Write a program to calculate the hypotenuse of two right triangles. Create a new project called 02.03 Math Class Methods. Create a class called Theorem in the newly-created folder. Use the appropriate Math class methods to calculate the hypotenuse of two right triangles. The value of each side (sides a and b) should be randomly generated using Math.random(). The range should from 5 (inclusive) to 23 (exclusive). Print the value of each side of both triangles as well as the value of the hypotenuse for both triangles. Expected Output: When your program runs correctly, the output should resemble the following screen sho

Solved
Show answers

Ask an AI advisor a question