65.0k views
1 vote
You are given two sides of a triangle, a = 3.5 and b = 5.2. the angle between them is 37 degrees. write a script to find the length of the third side and the area of the triangle.

1 Answer

2 votes
Use the law of cosines
side c² = a² + b² -2ab • cos(C)
side c² = 3.5^2 + 5.2^2 -2*3.5*5.2* cos (37)
side c² = 12.25 + 27.04 -(36.4 * .79864)
side c² = 39.29 -29.070496
side c² = 10.22
c = 3.197


Side Angle Side formula

Area = ½ • side 1 • sine (A) • side 2

Area = .5 * 3.5 * 0.60182 * 5.2
Area = 5.476562




User Chris J Allen
by
7.7k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories