Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

image text in transcribedimage text in transcribed
Sample Output: Please enter the two known sides of the triangle: 8 10 The maximum length of your third side is: 17 Your triangle's hypentuse is: 12.81 Please enter the two known sides of the triangle: 3 6 The maximum length of your third side is: 8 Your triangle's hypentuse is: 6.71 Please enter the two known sides of the triangle: 12 19 The maximum length of your third side is: 30 Your triangle's hypentuse is: 22.47\f

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions