1) Rewrite the Sierpinski gasket program from the notes to use the left mouse button to start a single new subdivision (up to a maximum of 8), the right button to have it iterate through subdivisions displaying a new one every second until a maximum of 8 subdivisions. Call this program gasket5.
2) Write a simple paint program paint. This should display a menu of objects that can be painted (lines, rectangles, triangles) and also a menu of colors. The object should be drawn with the currently selected color using vertex data entered by clicking the mouse. Note that you need to enter 2 points for a line or rectangle, and three for a triangle. You should automatically draw the object after the correct number of points are entered rather than having to click on a button to have it drawn.