Question: c++ 2 L Implement the following formulas using appropriate variables: Area of a triangle: a bh band hare integers (you can assign any value to

c++ c++ 2 L Implement the following formulas using appropriate variables: Area of

2 L Implement the following formulas using appropriate variables: Area of a triangle: a bh band hare integers (you can assign any value to these variables) o is a float (this is a calculated value outputted with 2 decimal places) it. Circumference of a circle: c = 2tr . ris an integer (you can assign any value to this variable) TT is a floating point literal that equals 3.14 cis a float (this is a calculated value outputted with 3 decimal places) Pythagorean Theorem: c = Va2 + b2 and b are integers (you can assign any value to these variables) cis a float (this is a calculated value outputted with 2 decimal places) Note: C++ has built in mathematical functions. For example, if I want to find out 45.1 can use the built-in pow() function like this: int x = pow(4, 5); Notice that we pass two parameters into this built-in function: one for the base (4) and one for the power (5) Similarly, if you have a variable named 'a' and you want to calculate a you can do powla, 2). Check out the following website to find a built-in function that calculates a square root: http://www.cplusplus.com/reference/cmath/ Your output should look like the following: --Area of triangle: b5 h = 7 Area - 17.50 --Circumference of a Circle: radius = 5 circumference = 31.400 --Pyhagorean Theorem: a = 4 b = 6 = 7.21 . 2

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!