Problem

Write a program that uses recursion to draw a Koch snowflake fractal of any given order....

Write a program that uses recursion to draw a Koch snowflake fractal of any given order. A Koch snowflake of order 0 is an equilateral triangle. To create the next-higher-order fractal, each line segment in the shape is modified by replacing its middle third with a sharp protrusion made of two line segments, each having the same length as the replaced one, as shown in Figure 13-11.

The following is the necessary information to compute the three new points (x2, y2), (x3, y3), and (x4, y4) in terms of (x1, y1) and (x5, y5).

Let:

The first three Koch snowflakes produced by the program might look like Figure 13-12.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 14
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT