Lab 8 assignment:

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:

Steps you can follow for today's lab:

  1. Take a look at method draw1() and see what happens when you uncomment the recursive version of draw1() .
    Then write the recursive version of
    draw2().
  2. Write the recursive version of draw3().
  3. Modify 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