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.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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!