Question: 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.


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
Get step-by-step solutions from verified subject matter experts
