Question 07 (7 points)
Write a program that prompts the user to enter three points (x1, y1), (x2, y2), and (x3, y3) of a triangle and displays its area.
Round the area to one decimal place.
The formula for computing the area of a triangle is
$s = \frac{(side1 + side2 + side3)}{2}$
$area = \sqrt{s(s - side1)(s - side2)(s - side3)}$
The formula for computing the length of each side of a triangle is:
$\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$
Where x1, x2 and x2, y2 are two points of a triangle.
Here is a sample run:
Enter three points for a triangle: 1.5 -3.4 4.6 5.0 9.5 -3.4
The area of the triangle is 33.6