(programming required) Write a recursive function sierpinskiCarpet(level, length, x, y), in a programming language of your choice, to draw a Sierpinski carpet. (See Exercise 5.23 for the meaning of...




(programming required) Write a recursive function sierpinskiCarpet(level, length, x, y), in a programming language of your choice, to draw a Sierpinski carpet. (See Exercise 5.23 for the meaning of the parameters.) Write your function so that—in addition to drawing the fractal—it also returns the area of the boxes that it encloses. Use your function to verify some small cases of your answer to


Exercise 5.19.


5.19 Sierpinski carpet







May 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here