Question: Recursion Drawing (80% of grade) Create a recursive turtle design that looks like a growing or shrinking pattern (spiral, snowflake, plant, etc.). Your recursion must
Recursion Drawing (80% of grade) Create a recursive turtle design that looks like a growing or shrinking pattern (spiral, snowflake, plant, etc.). Your recursion must control the structure of the designnot just repeat the same action. Use user input to control depth. Requirements Students must: Write a recursive function named draw_pattern(length, depth) Use NO loops inside the recursive function Include a base case that stops the recursion On each recursive call: Si a. Draw at least one line or shape b. Change at least two of the following: i. length ii. turning angle iii. pen color iv. pen width 5. The final image must be visually distinct from classmates' designs Students must submit the link to your online IDE where you create and test your program. Failure to do so will result in an automatic loss of 50% of the points earned on this entire assignment. In addition, submit your own responses to the following questions. AI checkers will be employed to determine if your response is in your own words (20% of grade). e What value changes most affect the final design? e What happens if the base case is removed or altered
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
