Question: JAVA Write a program (TriangleArea.java) that calculates the area of a triangle. Prompt the user to input from standard input 3 points, (x1, y1), (x2,
JAVA
Write a program (TriangleArea.java) that calculates the area of a triangle. Prompt the user to input from standard input 3 points, (x1, y1), (x2, y2) and (x3, y3) s = (sidel + side2 + side 3)/2; area = Vs(s - sidel)(s side2)(s side) Input: Enter three points for a triangle: -5 10 5-5 10 15 Output: The area of the triangle is 137.50 Hint: DecimalFormat df = new DecimalFormat("####0.00")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
