Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

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

Samsung Galaxy S23 Ultra Comprehensive User Manual

Authors: Leo Scott

1st Edition

B0BVPBJK5Q, 979-8377286455

More Books

Students also viewed these Databases questions