Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It's a C++ Programming use Dev C++. Please make it clear. Thank you. 2. Write a program that prompts for and reads in the two
It's a C++ Programming use Dev C++. Please make it clear.
Thank you.
2. Write a program that prompts for and reads in the two side lengths of a right triangle (floating point numbers) and then calls a float-valued function, Hypot, which calculates and returns the length of the hypotenuse of the triangle. The program then displays the two side lengths and the hypotenuse length. Notes: The Hypot function returns the hypotenuse length - it does not display it; the function should not contain any cout nor cin statements. Math review: Recall that for any right triangle with side lengths a and b, and hypotenuse length c, a? + b2 = c. Here is an example of what output should look like from running your program (user input is shown in bold) Enter the side lengths: 1.2 3.4 First side length = 1.2 Second side length = 3.4 Hypotenuse length = 3.60555Step 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