Question: in java! please provide 2 main method testing! 6. Wikipedia defines a fractal as a natural phenomenon or a mathematical set that exhibits a repeating
in java! please provide 2 main method testing!
6. Wikipedia defines a fractal as "a natural phenomenon or a mathematical set that exhibits a repeating pattern that displays at every scale. It is also known as expanding symmetry or evolving symmetry." You may have seen fractals before; some of the most well know include Sierpinsky's triangle and the Mandelbrot set. You will be writing methods that create some recursive images. In the resources tab on collab under Homework/Homework 7 you will find several files. First in your current project in eclipse add Turtle.java, World.java and Triangle.java. Read over the API and run Triangle.java, this is Sierpinsky's triangle. Play around with a turtle and world and also look through each file for various methods that can be used that are not described in the API Note that we can't actually have the fractal extend forever (unfortunately we don't have that long to wait on the turtle to draw)! One way around this is to have a parameter that specifies how many "levels" of recursion we should go. There are other ways to handle this but this is how the recursive method in Triangle.java is written. Once you are familiar with how to draw using a turtle write a recursive method call snowflake() that will draw a Koch snowflake (See picture below). If you need help figuring out how to draw this see the following website: https://bentrubewriter.com/2012/04/19/preview-fractals-you-can-draw/ Koch Snowflake
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
