Question: USING PYTHON 1-write a function name rectangle that uses turtle graphics to draw a rectangle of specified dimensions, the function takes 3 parameters, t, a

USING PYTHON 1-write a function name rectangle that uses turtle graphics to draw a rectangle of specified dimensions, the function takes 3 parameters, t, a turtle that is used for drawings, size1 the lenght of the first and 3rd side of the rectangle, size 2 the lenght of the second and 4rth side of a rectangle.the function should draw a rectangle beggining at the initial position and orientation of t, and should leave t with the same position and orientation on exit.do not make assumptions about the inkitial position of t, and you must use a loop for repeated operations.

1b-wite a function named panels that uses turtle graphics and the function rectangle (previous questiomn) to draw a sequence of rectangles of specific size and orientation.begin drawing each rectangle at the initial location of the passed turle parameter.rotate each rectangle after the fist one counterclockwise by an specific angle .make the second and fourth side of each rectangle twice the lenght of the first and third side.the function should repeateldy called rectangle to draw rectangle of increasing size ,rotated by specific angle.the function takes 5 parameters 1-t a turtle for drawing, 2-initSize the lenght of the short size of the first rectangle , 3-delta, the increase in lenght of the short size of successive rectangles, 4-numPanels, the numbers of rectangles to draw and 5-angle, the numbers of degree to rotate successive rectangles.

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 Databases Questions!