The first three iterations of this procedure are shown in


Question: A Koch star is formed starting with an equilateral triangle and then recursively altering each line segment as follows:

1. divide the line segment into three segments of equal length.

2. draw an equilateral triangle that has the middle segment from step 1 as its base and points outward.

3. remove the line segment that is the base of the triangle from step 2. The first three iterations of this procedure are shown in Figure. Write a Java program to draw a Koch star.

1658_5.jpg

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: The first three iterations of this procedure are shown in
Reference No:- TGS02457779

Now Priced at $15 (50% Discount)

Recommended (97%)

Rated (4.9/5)