Question: Please help me write this code in java, I have attached all the files needed below Main java : https://www.csd.uwo.ca/Courses/CS1027a/assmt2/Main.java Canvas java : https://www.csd.uwo.ca/Courses/CS1027a/assmt2/Canvas.java MakeFractal:

 Please help me write this code in java, I have attached

Please help me write this code in java, I have attached all the files needed below

Main java : https://www.csd.uwo.ca/Courses/CS1027a/assmt2/Main.java

Canvas java :

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/Canvas.java

MakeFractal:

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/MakeFractal.java

DrawFractal:

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/DrawFractal.java

Line info:

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/LineInfo.java

Current Point Info:

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/CurrentPointInfo.java

Empty Collection Exception :

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/EmptyCollectionException.java

Linear Node:

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/LinearNode.java

Linear Stack:

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/LinkedStack.java

Stack ADT:

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/StackADT.java

Tutorial 2:

https://www.csd.uwo.ca/Courses/CS1027a/assmt2/asn2_tutorial_2018.txt

The Main.java class is provided for you. Its main method contains the Java code needed to setup 6 fractal curves and prints them on a large canvas and to save them as jpg images. The canvas class is given by the class Canvas,java. The main method requires 4 line arguments, see Tutorial 2 on the course web page to see how to do this in Eclipse You need to write methods for 2 classes for this assignment, a shell class given in MakeFractal.java and another shell program given in DrawFractal.java . You need to write a method buildFractalO for MakeFractal.java. This method uses a stack to perform the iterations to build the final complex fractal string You process symbols (as Strings) left to right, symbols with production rules are replaced with those rules (and these symbols are pushed onto the stack) while other symbols are just pushed without substitution. At the end of iterations we pop the stack and concatenate it to the front (of an initially empty) string to represent the fractal . You also need to write a method computeLines in the class Drawrractal.java that takes the string representing the fractal and produces an array of line objects that draw the fractal. A stack is needed to process the symbols '[" and "" (push and pop) via a stack to handle branching extendCapacity helper class (to expand the array size as needed). Another class for storing the current pixel information (coordinates, current drawing length and current drawing direction) when pushing or popping to get branching (necessary for trees and bushes) is given in CurrentPointInfo java. Class definitions for the Linked List Stack, that we can use without being concerned with its implementation, are given her EmptyCollectionException.java (nceded by the pop method), LinearNode.java, LinkedStack.java and StackADT java The Main.java class is provided for you. Its main method contains the Java code needed to setup 6 fractal curves and prints them on a large canvas and to save them as jpg images. The canvas class is given by the class Canvas,java. The main method requires 4 line arguments, see Tutorial 2 on the course web page to see how to do this in Eclipse You need to write methods for 2 classes for this assignment, a shell class given in MakeFractal.java and another shell program given in DrawFractal.java . You need to write a method buildFractalO for MakeFractal.java. This method uses a stack to perform the iterations to build the final complex fractal string You process symbols (as Strings) left to right, symbols with production rules are replaced with those rules (and these symbols are pushed onto the stack) while other symbols are just pushed without substitution. At the end of iterations we pop the stack and concatenate it to the front (of an initially empty) string to represent the fractal . You also need to write a method computeLines in the class Drawrractal.java that takes the string representing the fractal and produces an array of line objects that draw the fractal. A stack is needed to process the symbols '[" and "" (push and pop) via a stack to handle branching extendCapacity helper class (to expand the array size as needed). Another class for storing the current pixel information (coordinates, current drawing length and current drawing direction) when pushing or popping to get branching (necessary for trees and bushes) is given in CurrentPointInfo java. Class definitions for the Linked List Stack, that we can use without being concerned with its implementation, are given her EmptyCollectionException.java (nceded by the pop method), LinearNode.java, LinkedStack.java and StackADT java

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!