Question: For this assignment you are to build a Swing application which can draw Sierpinski triangles. Include a text box for the order which redraws the

For this assignment you are to build a Swing application which can draw Sierpinski triangles. Include a text box for the order which redraws the triangles whenever the value is changed. As an example of the Swing application:

For this assignment you are to build a Swing application which can

As an example of the algorithm:

1. Start first with an equilateral triangle

2. Divide it into four smaller congruent equilateral triangles and remove the inner triangle

3. Repeat step 2 with each of the smaller triangles. draw Sierpinski triangles. Include a text box for the order which redraws

Applet Viewer: SierpinskiTriangle.class Applet Enter an order: 4 Applet started

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!