Question #268600

do the hand tracing with any value to find the area

Accept the two sides and an angle included by these two sides, and find the area and third side of a triangle.

 (1) Display "Enter two sides and an angle:"

(2) Accept a, b,theta

(3) ang = theta * 3.14 / 180;

(4) third_side = sqrt (a*a + b*b - 2*a*b* cos(ang))

(5) area = ½*a*b* sin(ang)

(6) Display "Third_side =",third_side,"Area =", area

(7) Exit


Expert's answer

The answer to your question is provided below

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS