Question: Using c++. Can someone please help me with this problem. Thank you. Write a program that will ask the user to input the values for

 Using c++. Can someone please help me with this problem. ThankUsing c++. Can someone please help me with this problem. Thank you.

Write a program that will ask the user to input the values for the two sides (side 1 and side 2) of a right triangle. Then calculate and display the hypotenuse, perimeter and area of the right triangle. These results should be printed along with the values of side 1 and side 2 using appropriate labels. Use the following formulas: hypotenuse = Squareroot (side 1)^2 + (side 2)^2 perimeter = (side 1 + side 2 + hypotenuse) are = (side 1 = side 2)/2 (i) Must use the appropriate math library functions. (ii) Follow the entire "program template" guidelines for all documentation and requirements. (iii) Variable data types should be chosen according to the program's input and output data. (v) Results should be displayed with two decimal place accuracy: such as 25.05 (vi) Test your program using the value: side 1 = 3.0 and side 2 = 4.0 Format Manipulators. setw(), setprecision (), setiosflags(ios:: showpoint), setionsflags(ios:: fixed), setiosflags(ios:: scientific), setionsflags(ios:: left), setiosflags(ios: right) Common Math Function: abs(a), pow (a, b), squareroot (a), sin (a), tan (a), cos (a), log 10(a), exp (a). #include #include #include

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!