(Suggested book reading: Programming Abstractions in C++, sections 8.3-8.4)
Today we will talk about recursive functions that make more than one recursive call. This is a useful thing to do in many different contexts, but we'll explore with a fractal example because it provides simple, instant visual feedback about what our algorithm is doing. And it's fun!
To understand the fractal example, it will help to have just a tiny bit of background information on how the Stanford graphics libraries work. The first thing to know is that they create a canvas for drawing:
You are expected to follow the Stanford Honor Code.
If this is an assignment that allows pairs, the same rules apply to each team. For example, do not look at assignment solutions that do not belong to your team, and do not give your solution to anyone outside of your team.
Remember that we run similarity-detection software over all solutions, including this quarter and past quarters, as well as any solutions we find on the web.
If you need help solving an assignment, we are happy to help you. You can go to the LaIR, or the course message forum, or email your section leader, or visit the instructor / head TA during office hours. You can do it!