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:

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. 
Applet Viewer: SierpinskiTriangle.class Applet Enter an order: 4 Applet started
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
