Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use MATLAB The distance (length) between any two points (x1,y1) and (x2,y2) is: distance=(x1x2)2+(y1y2)2 1 The area of a triangle is: Area=s(sa)(sb)(sc) where a,b,c are

use MATLAB image text in transcribed
The distance (length) between any two points (x1,y1) and (x2,y2) is: distance=(x1x2)2+(y1y2)2 1 The area of a triangle is: Area=s(sa)(sb)(sc) where a,b,c are the lengths of three edges of triangle, and s=2a+b+c, a) create a function which can calculate, return the lengths of three edges of a triangle and its area. (note: must use only one function in this problem) b) write a script that ask user to enter x and y coordinates of three vertices of a triangle, then use the function in a) to display the lengths of three edges and area of the triangle

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Climate And Environmental Database Systems

Authors: Michael Lautenschlager ,Manfred Reinke

1st Edition

1461368332, 978-1461368335

More Books

Students also viewed these Databases questions