Question: DrawCirclePoints(xc, yc, x, y) Plot(xc+x, yc+y) Plot(xc-x, yc+y) Plot(xc+x, yc-y) Plot(xc-x, yc-y) Plot(xc+y, yc+x) Plot(xc-y, yc+x) Plot(xc+y, yc-x) Plot(xc-y, yc-x) end DrawCirclePoints DrawCircle(xc, yc, r)

DrawCirclePoints(xc, yc, x, y) Plot(xc+x, yc+y) Plot(xc-x, yc+y) Plot(xc+x, yc-y) Plot(xc-x, yc-y) Plot(xc+y, yc+x) Plot(xc-y, yc+x) Plot(xc+y, yc-x) Plot(xc-y, yc-x) end DrawCirclePoints DrawCircle(xc, yc, r) x = 0, y = r d = 3 - 2 * r DrawCirclePoints(xc, yc, x, y) while y >= x x = x + 1 if d > 0 y = y - 1 d = d + 4 * (x - y) + 10 else d = d + 4 * x + 6 DrawCirclePoints(xc, yc, x, y) end while end DrawCircle, solve the code

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!