Question: 1. Create a new folder for drawing-rectangles program. 2. Write a Python program that will allow you to draw various sized rectangles in a 20x20

1. Create a new folder for drawing-rectangles program. 2. Write a Python program that will allow you to draw various sized rectangles in a 20x20 grid. Ask the user for various characteristics about their rectangle (where is the top left corner, width and height), plot a filled in version of the rectangle in the grid and show the user. Keep asking for different rectangles until the user wishes to stop. (Don't worry if one rectangle covers over another rectangle. However, you will need to worry if the rectangle spills over the edges of the grid. That is, any rectangles that are wider or taller than the grid should be simply clipped off.) This example shows three rectangles: One at row 1, column 2 with a width of 3 and height of 4. 2/3 The second is at row 5, column 6 with a width of 7 and height of 8. The third one is at row 4, column 10 with a width of 20 and height of 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
