Question: please write a program on netbeans java language Question 1 [50 points]: Write a method that states whether 2 circles intersect or not. The method
Question 1 [50 points]: Write a method that states whether 2 circles intersect or not. The method accepts the coordinates of the center of the first circle and its radius, and the coordinates of the center of the second circle and its radius. Public static boolean Intersection(double x1, double yl, double rl, double x2, double y2, double r2) Write a test program that allows the user to enter the centers coordinates and radiuses of two circles and check whether the circles intersects or not. The program stops when N is entered. Note: Distance between centers ci and c2 is calculated as follows: d = Math.sqrt ((x1 x2) + (y1 - y2)). >If d rl + r2 Circles do not intersect. Enter the coordinates of the circles centers and their radiusest 0 0 5 2 3 2 Do the two circles intersect? true Check another circles? Y Enter the coordinates of the circles centers and their radiuses: 0 0 5 10 8 3 Do the two circles intersect? false Check another circles
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
