Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribedJAVA

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

To find integral of sin(logx) .

Answered: 1 week ago

Question

What is Centrifugation?

Answered: 1 week ago