Question: using the cmath library along with the distance equation used in Lab 1 use nested loops to iterate through a grid in order to draw

using the cmath library along with the distance equation used in Lab 1 use nested loops to iterate through a grid in order to draw a circle. Get the size of the grid from the user and set the radius of the circle to be approx 1/2 of the grid size minus 1. the grid size should be between 10 and 40 but we will not worry about data validation for this ICE. For points in the grid that are not on the circle, use a "." For points on the circle use a "0" add a row of stars (asterisks) at the bottom the same width as the grid HINT: points on the circle can be determined by calculating the distance from the center of the grid and comparing that to the radius. When the distance matches the radius (within a reasonable amount) the point is on the circle. example output example output enter a number between 10 and 40: 20 4 0 0 0 0 0 0 0 0 0 0 . 0 0 0 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 + 4 4 0 0 0. 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 * Press (Enter] t close the terminal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
