This lab
assignment is to modify this
Java program in way to transform the iterative methods to recursive methods.
The Method functions are graphical functions that draw different figures on the
screen based on Canvas Class.
You need this class which is the canvas
class to run your code. The output will be like this:
Each of these figures is drawn by a
different method:
draw1()
draws the parallel lines,0 Pointdraw2()
draws the "spiral" 1
Point for transforming the function
to recursive.draw3()
draws the empty squares 1 Point for transforming the function
to recursive.draw4()
draws the colored squares. 1
Point for drawing the bottom graph.Steps you can follow for today's
lab:
draw1()
and see what happens when you uncomment the recursive version of
draw1() .draw2()
. draw3()
. recursiveDraw4()
in such a way it draws the following: Write Your Name and Your Partner Name. Then
Upload both files to Lab8 on Blackboard. GOOD LUCK