Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started