Question: Given the corner points of a triangle ( x 1 , y 1 ) , ( x 2 , y 2 ) , ( x
Given the corner points of a triangle compute the area.
Hint: The area of the triangle with corner points and is
mport java.util.Scanner;
ublic class Geometry
Computes the area of a triangle
@param the coordinate of the first corner
Qparam the coordinate of the first corner
Qparam the coordinate of the second corner
Qparam the coordinate of the second corner
eparam the coordinate of the third corner
Qparam the coordinate of the third corner
creturn the area of the triangle
Your code goes here I
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
