How to Use the Recursive Applet
Notations
- The left panel is the drawPanel and user
must draw Base cases, NonBase cases, recursive points and Handle points on the drawPanel.
- The right panel is the recPanel, the where points
and recusive images are on the recPanel.
- Handle points are in red
- Recursive points are in cyan.
- NonBase cases are in blue.
- Base cases are in black
- The user must define the n.
- The where points on recPanel are in green.
- For drawing line,the user must
drag the mouse from the line's start point to end point on the drawPanel
- For drawing circle, just like line, you must drag your mouse from a point.
- For drawing arc, the user must choose three points (COUNTER CLOCKWISE) on the drawPanel.
- Choose a file, which includes handle points, base case, non-base case and
recursive points, on the File's Name
drop down list, declare n and click on Recursive button to determine the Where points .
- The format of the files must be in the following order:
handle points - base case (if any) - "done" - nonbase cases (if any) - "done" - recursive points - "done"
- On the very left corner of the applet, user can see currently what state the applet is in, Base or
NonBase or Handle Points or recurse Points .
- Warning: If coordinates of any part of recursive picture goes beyound the boundaries of the right panel, then
that part of the picture wouldn't be drawn, so try to keep the recursive picture inside the boundary of right panel.
How to Create Recursive Images
- The user must determine the Handle points by first clicking
on the Handle button, then define two red points on the drawPanel.
- To draw Base cases the user must click on the Base Case
button. Then user must click on either Line or Oval or Arc buttons to draw line, oval or arc (COUNTER CLOCKWISE) shapes.
- To draw NonBase cases the user must click on the NonBase Case
button. Then user must click on either Line or Oval or Arc buttons to draw line, oval or arc (COUNTER CLOCKWISE) shapes.
- To define the recursive points, the user must click on the Recurse Points button then define the recursive points on the drawPanel by dragging
the mouse from one point to another.
- The user must determine the n in Enter n: textfield at the top of the applet.
- In order to see the recusive image, the user must determine the Where points right after clicking
on the Recurse button, then define two green points on the right Panel.
- To clear the right panel, the user must click on
the Clear Recursive Panel button.
- To clear all Base cases or NonBase cases or recursive points or Handle points
from the left panel, first click on either Base Case or NonBase Case or Recursive Point
or Handle Points buttons pending on your choice, then click on the Clear All button.
- To start on a new recursive image, click on the New button.
How to Run the Recursive Applet
- New: click on this
button
applet will be to start on a new recursive image including choosing one of the file.
- Clear Recursive Panel click
on this button will clear the right panel
- Clear All: click on
this button to clear either all the base or non base or recursive points or handle points from the left panel.
>
- Undo: click on this button to remove the last, base image or nonbase image or recursive points.
- Base Case: click on this button to draw or clear All or Undo base images.
- NonBase Case: click on this button to draw or clear all or Undo nonbase images.
- Recursive Points: click on this button to determine or clear all or Undo recursive points.
- Handle Points: click on this button to determine or clear all handle points.
- Line: click on this button to draw lines for base or nonbase images on the left panel.
- Oval: click on this button to draw Oval for base or nonbase images on the left panel.
- Arc: click on this button to draw arc (COUNTER CLOCKWISE) for base or nonbase images on the left panel.
- Use Enter n: textfield to set the n.
- Use File's Name: to choose a file.
If you can not open this applet with Internet Explorer, use Netscape 6
or
higher, or use Mozilla.
Go Back to the Applet Page