Apr 23: Recursive Drawings
Learning Objectives
After today's class, you should be able to:
- Use the Java 2D API to draw a repeating pattern on shapes.
- Explain how base cases and recursive calls affect execution.
- Identify similarities and differences in recursive methods.
Lesson Outline¶
HW9-A Debrief [10 min]
- Solution available in Canvas Files
- Part B (60 pts) due Monday, 4/29
Act14 [50 min]
Mini Lecture [15 min]
How to write a recursive function:
- Step 0. Define a helper method (if applicable)
- Step 1. Base case: how will the recursion stop?
- Step 2. Current case: what needs to be computed?
- Step 3. Recursion: how will the arguments change?
Your To-Do List¶
By Friday but ideally before Thursday's class:
If you would like to get ahead this week: