Question: Suppose you know the lengths and the angle between two adjacent sides of a triangle, as shown in the drawing below. You can find the

Suppose you know the lengths and the angle between two adjacent sides of a triangle, as shown in the drawing below. You can find the area of the triangle using the following relationship: tAREA = * a * b * sin(x) Open the script editor by using the drop down menu, Applications and select Scinotes. Write a script file to compute the area of the triangle using the equation tAREA = * a * b * sin(x) and save it in an .sce file called TriangleArea. The values a, b and x should be loaded using the input command. Remember trig functions in SCILAB expect the angles to be in units of radians. Use the printf command to display the input variables, their value and units and display the output variable, tAREA giving its value and units. Use the following values to test your results: a = 5 ft, b = 6 ft, and x = 23o. a = 12 ft, b = 2 ft, and x = 78o. Run your script file, and test your results. What would happen if you used an angle greater than 180o? When you tried it, does it make sense? Is there a way to adjust your script with this in mind?

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!