In python will thumbs up.
Posted: Mon Jun 06, 2022 6:10 pm
In python will thumbs up.
Write a program that prompts the user to enter the center coordinates and radius of two circles and determines whether the second circle is inside the first or overlaps with the first, as shown in the below figure. (Hint: circle2 is inside circlel if the distance between the two centers + r2 <=r1 and circle2 overlaps circlel if the distance between the two centers <=r1 + 12. Test your program to cover all cases.) V (x1, yl) (x2, y2) Sample three runs: Enter circlel's center x coordinate: 0.5 Enter circlel's center y-coordinates: 5.1 Enter circlel's radius: 13 Enter circle2's center x coordinate: 1.0 Enter circle2's center y-coordinates: 1.7 Enter circle2's radius: 4.5 circle2 is inside circlel Enter circlel's center x coordinate: 4.4 Enter circlel's center y-coordinates: 5.7 Enter circlel's radius: 5.5 Enter circle2's center x coordinate: 6.7 Enter circle2's center y-coordinates: 3.5 Enter circle2's radius: 3 circle2 overlaps circlel (x1, yl) (x2, y2)
Write a program that prompts the user to enter the center coordinates and radius of two circles and determines whether the second circle is inside the first or overlaps with the first, as shown in the below figure. (Hint: circle2 is inside circlel if the distance between the two centers + r2 <=r1 and circle2 overlaps circlel if the distance between the two centers <=r1 + 12. Test your program to cover all cases.) V (x1, yl) (x2, y2) Sample three runs: Enter circlel's center x coordinate: 0.5 Enter circlel's center y-coordinates: 5.1 Enter circlel's radius: 13 Enter circle2's center x coordinate: 1.0 Enter circle2's center y-coordinates: 1.7 Enter circle2's radius: 4.5 circle2 is inside circlel Enter circlel's center x coordinate: 4.4 Enter circlel's center y-coordinates: 5.7 Enter circlel's radius: 5.5 Enter circle2's center x coordinate: 6.7 Enter circle2's center y-coordinates: 3.5 Enter circle2's radius: 3 circle2 overlaps circlel (x1, yl) (x2, y2)