Question: Given the corner points of a triangle ( x 1 , y 1 ) , ( x 2 , y 2 ) , ( x

Given the corner points of a triangle (x1,y1),(x2,y2),(x3,y3) compute the area.
Hint: The area of the triangle with corner points (0,0),(x1,y1), and (x2,y2) is
|x1*y2-x2*y1|2
1 mport java.util.Scanner;
ublic class Geometry
/**
Computes the area of a triangle
@param x1 the x-coordinate of the first corner
Qparam y1 the y-coordinate of the first corner
Qparam 2 the x-coordinate of the second corner
Qparam y2 the y-coordinate of the second corner
eparam x3 the x-coordinate of the third corner
Qparam y3 the y-coordinate of the third corner
creturn the area of the triangle
Your code goes here *I
 Given the corner points of a triangle (x1,y1),(x2,y2),(x3,y3) compute the area.

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!