Reference no: EM132174793
USING PYTHON AND TURTLE GRAPHICS
a-Write a function named midLine that draws a line based on two paramters
1-t a turtle to use to draw
2-length the length of the line to draw the turtle is initially at the midpoint of the line that midline draws when midline returns t should be in its initial position and orientation. do not make any assumptions about the initial position and orientation of t.
b- Write a function named starburst that uses turtle graphics to draw a number of lines of increasing length that share a common midpoint. each line is the offset of the previous line by specified angle , the function takes 5 parameters
1- t a turtle for drawing
2- num the umber of lines to draw
3-init the length of the first line
4-delta the multiple by which the successive lines increase in lenght
5- angle the counterclockwise roation between successive lines.