Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CHALLENGE ACTIVITY 4 . 3 . 1 : Compute the area of this triangle. Given the corner points of a triangle ( x 1 ,

CHALLENGE
ACTIVITY
4.3.1: Compute the area of this triangle.
Given the corner points of a triangle (x1,y1),(x2,y2),(x3,y3) compute the are
Hint: The area of the triangle with corner points (0,0),(x1,y1), and (x2,y2) is
|x1*y2-x2*y1|2
import java.util.Scanner;
public 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 x2 the x-coordinate of the second corner
@param y2 the y-coordinate of the second corner
Qparam x3 the x-coordinate of the third corner
Qparam y3 the y-coordinate of the third corner
@return the area of the triangle
Your code goes here */
}
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions