Question: MATLAB script - thank you 8. The distance between any two points (x1,y1) and (x2,y2) is given by: distance =(x1x2)2+(y1y2)2 The area of a triangle

MATLAB script - thank you
MATLAB script - thank you 8. The distance between any two points

8. The distance between any two points (x1,y1) and (x2,y2) is given by: distance =(x1x2)2+(y1y2)2 The area of a triangle is: area=s(sa)(sb)(sc) where a,b, and c are the lengths of the sides of the triangle, and s is equal to half the sum of the lengths of the three sides of the triangle. Write a script that will prompt the user to enter the coordinates of three points that determine a triangle (e.g., the x and y coordinates of each point). The script will then calculate and print the area of the triangle. It will call one function to calculate the area of the triangle. This function will call a local function that calculates the length of the side formed by any two points [the distance between them]

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!