Question: Write a program that prompts the user to enter the center coordinates and radii of two circles and determines whether the second circle is inside
Write a program that prompts the user to enter the center coordinates and radii of two circles and determines whether the second circle is inside the first or overlaps with the first, as shown in Figure 3.10.Here are the sample runs:


rl rl (x1, yl) (x1, yl) (x2, y2) (12, y2) (a) (b) Enter circlel's center x-, y-coordinates, and radius: 3.4 5.7 5.5 JEnter Enter circle2's center x-, y-coordinates, and radius: 6.7 3.5 3 circlel overlaps circlel JEnter Enter circlel's center x-, y-coordinates, and radius: 3.4 5.5 1 PEnter Enter circle2's center x-, y-coordinates, and radius: 5.5 7.2 1 JEnter circle2 does not overlap circlel
Step by Step Solution
3.52 Rating (162 Votes )
There are 3 Steps involved in it
Output Enter circle1s center x and y coordinates and radius 3 4 5 5 1 Enter circle2s center ... View full answer
Get step-by-step solutions from verified subject matter experts
