Question
1)Make a function to calculate the maximum length of the third side of a triangle and its hypotenuse. 2)You will collect two side lengths from
1)Make a function to calculate the maximum length of the third side of a triangle and its hypotenuse.
2)You will collect two side lengths from the user.
Requirements:
1. Collect the length of two sides of a triangle from the user.
2. Within one function, calculate the maximum third length of a triangle and its hypotenuse. Return the value of the hypotenuse to main().
3. Display the results for the triangle's maximum third side and its hypotenuse in main().
4. Round the hypotenuse to the nearest 10th .
5. Output needs to be labeled and easy to read as displayed below:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started