Question: using matlab write the following code: 4. If the lengths of two sides of a triangle and the angle between them are known, the length
4. If the lengths of two sides of a triangle and the angle between them are known, the length of the third side can be calculated. Given the lengths of two sides (b and c) of a triangle, and the angle between them a in degrees, the third side a is calculated as follows: a = V(62 + c2 - 2bc * cos(a)) Write a script that will prompt the user and read in values for b, c and a and them calculate and print the value of a, with 2 decimal places. The format of the output from the script should look exactly like this: Enter the first side: 3.2 Enter the second side: 5.0 Enter the angle between them: pi/4 The third side is 3.55
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
