Advertisement
Arbitrator

Koch

Oct 3rd, 2019
6,195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. Instructions
  2.  
  3. 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:
  4. Draw a Koch curve of order n−1
  5. Rotate 60° counterclockwise
  6. Draw a Koch curve of order n−1
  7. Rotate 120° clockwise
  8. Draw a Koch curve of order n−1
  9. Rotate 60° counterclockwise
  10. Draw a Koch curve of order n−1
  11. Below are the Koch curves of order 0, 1, 2, and 3.
  12.  
  13. 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.
  14. Document clearly your proof.
  15. Find these classes in the folder on the left side navigation:
  16. A link should point you to all the code and the Standard Libraries
  17. Koch.java
  18. Turtle.java
  19.  
  20. Link to Khan Academy suggested by students:
  21. https://www.khanacademy.org/math/geometry-home/geometry-volume-surface-area/koch-snowflake/v/area-of-koch-snowflake-part-2-advanced
  22.  
  23. WARNING: Documentation is 20% of your grade.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement