Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Instructions
- Recursive graphics. Koch_YI.java takes a command-line argument n and draws a Koch curve of order n. A Koch curve of order order 0 is a line segment. To form a Koch curve of order n:
- Draw a Koch curve of order n−1
- Rotate 60° counterclockwise
- Draw a Koch curve of order n−1
- Rotate 120° clockwise
- Draw a Koch curve of order n−1
- Rotate 60° counterclockwise
- Draw a Koch curve of order n−1
- Below are the Koch curves of order 0, 1, 2, and 3.
- As the order of the curve increases, how is the area inside the curve affected? Modify the Koch ADT to include a method that implements the area computation to assist you in answering the question.
- Document clearly your proof.
- Find these classes in the folder on the left side navigation:
- A link should point you to all the code and the Standard Libraries
- Koch.java
- Turtle.java
- Link to Khan Academy suggested by students:
- https://www.khanacademy.org/math/geometry-home/geometry-volume-surface-area/koch-snowflake/v/area-of-koch-snowflake-part-2-advanced
- WARNING: Documentation is 20% of your grade.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement