write a program (in C++) to do the following tasks?
1) accept the coordinates of 3 points.
2) check whether these points form a triangle or not.
3)if the given 3 points form a triangle find its 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 function to find the area of a triangle using the formula:
sqrt( S(S-A)(S-B)(S-C) )
where A,B,C are the triangle sides and S=(A+B+C)/2 ( half of the circumference)
=========================
plz plz plz help me to do it [-o< THX Alot....
2006-11-25
03:12:33
·
3 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design