Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CHALLENGE ACTIVITY 4 . 3 . 1 : Compute the area of this triangle. 5 4 1 6 6 4 3 8 1 1 8

CHALLENGE
ACTIVITY
4.3.1: Compute the area of this triangle.
5416643811828.93zqy7
Given the corner points of a triangle (x1,y1),(x2,y2),(x3,y3) compute the ai
Hint: The area of the triangle with corner points (0,0),(x1,y1), and (x2,y2) is
|x1*y2-x2*y1|2
@param y2 the y-coordinate of the second corner
@param 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 */
}
public static void main(String[] args)
{
Scanner in = new Scanner(System. in);
double 1= in. nextDouble () ;
double y1= in. nextDouble ();
double 2= in. nextDouble(() ;
double y2= in. nextDouble(
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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions