

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Remember the “Sierpinski Carpet” from last week! Part 1 Write a C++ program to generate (x, y) points according to the following rules: (xnew, ynew) r (0.5, 0.27y) for r<0. (-0.139x+0.263y+0.57, 0.246x+0.224y-0.036) for 0.02<=r<=0. (0.17x-0.215y+0.408, 0.222x+0.176*y+0.0893) for 0.17 For your web images, make sure that the image is sized so that it reasonably fits on your html page. This can be done using the height and width options of the image html tag; example: __ For text regions use the html object tag; example: __