1) accept the coordinates of 3 point.
2) check whether these points from a triangle or not.
3) if the given 3 points from a triangle find it's area.
4)you should write a function that calculate the distance between 2 points and calculate the slope of the line connects these 2 points.
5) write a functionto find the area of a triangle using the formula:(S(S-A)(S-B)(S-C))^.5 .
where A,B,C are the triangle sides
and S=(A+B+C)|2
2006-11-25
01:31:00
·
1 answers
·
asked by
a7med_h_87
1
in
Computers & Internet
➔ Programming & Design