. It is required to draw two circles on the screen at two different positions. S
ID: 2080898 • Letter: #
Question
. It is required to draw two circles on the screen at two different positions. Suppose one circle is drawn at (100,200) and the second is drawn at (200,100). If the radius of the first circle is given 80 and the radius of the circle is given as 70, then the two circles will intersect. If the radius of the first circle is given as 80 and the radius of the second circle is given as 60 then the two circles will not intersect. Write an algorithm that will ask the user to enter the radii of the first and the second circle and display a proper message. Assume that the positions of the centers of the two circles are fixed.
Explanation / Answer
If {x1, y1, r1} is the first circle and {x2, y2, r2} is the second one then
in your test case
the computation shows that
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.