(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
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here