Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the solution in Java and please make sure to comment your code. Details Input 4 ints' all in the same line Output Follow ex

Write the solution in Java and please make sure to comment your code.

image text in transcribedimage text in transcribed
Details Input 4 ints' all in the same line Output Follow ex ample bellow Examples Sample Input 10485 109 N39 5-32:4 HUN DH TERMINAL Problem 1 Sample Output x: 19 y: 4 x: B y: 6 p1==p2 false p1 higher than Distance: 2.83 x: 13 y: 9 x: 19 y: 9 p1==p2 true p1 higher than Distance: 8.88 x: 5 y: 3 x: 2 y: 4 p1==p2 false p1 higher than Distance: 9.99 p2: p2: p2: false false false Details Input The points for both triangles. all in one line Output Seeexmnpm Example Sample Input 21313118211? 615689?8 21313118211? Ellliig'FB H LIN DH TERMINAL Problem2 Sample Output Triangle: x: 2 y: 3 x: 13 Triangle: x: T y: 5 x: 15 T1 contains Point: true T2 contains Point: false T1 contains T2: false T2 contains T1: false Triangles overlaps: true Triangle: x: 2 y: 3 x: 13 Triangle: x: 2 y: 6 x: 18 T1 contains Point: true T2 contains Point: false T1 contains T2: true T2 contains T1: false Triangles overlaps: False Y Y Y Y

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

Students also viewed these Programming questions

Question

What are three popular applications of the Internet?

Answered: 1 week ago