Question: Description In this exercise, you are tasked to modify the recursive method, drawFractalTree ( ) , in the TreePanel class so that a fractal tree
Description
In this exercise, you are tasked to modify the recursive method, drawFractalTree in the TreePanel class so that a fractal tree with four branches at each node will be drawn.
Project Template
The project template for this graded task can be downloaded here.
Instructions
The run the program, create a new instance of FractalTree.
The current implementation of the drawFractalTree method draws the tree with three branches at each node oriented at degrees, degrees and degrees relative to the node by three recursive calls.
Modify the implementation of the method so that it draws the tree with four branches at each node orientated at degrees, degrees, degrees and degrees relative to the node by four recursive calls.
You will need to change the fourth parameter for each of the four recursive calls to the drawFractalTree method to complete this task.
Submit ONLY the codes for the recursive calls. The remaining codes given in the drawFractalTree method must not be submitted.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
