Difference between revisions of "CSC111 Final Exam 2015b"
Line 2: | Line 2: | ||
---- | ---- | ||
<onlydft> | <onlydft> | ||
+ | <br /> | ||
+ | __TOC__ | ||
<br /> | <br /> | ||
=Fractal Orange Tree= | =Fractal Orange Tree= | ||
Line 10: | Line 12: | ||
<br /> | <br /> | ||
* Make sure your name is included in the header of your program. | * Make sure your name is included in the header of your program. | ||
− | * Call your program '''final1.py | + | * Call your program '''final1.py'''. Submit it, along with a capture of the image to Moodle, in the Final 1 Program and Final 1 Image sections. If you need help capturing the final image, please visit [http://www.take-a-screenshot.org/ this page]. |
− | + | * I only used "red", "orange", "blue", "lightgreen," and "brown" in the program that generated the image above. | |
− | * I used | + | * Note that the width of the branches are different. If I ask the program to print the width of each branch as it draws them, I get this output (which is truncated, as it gets very long): |
− | * Note that the width of the branches are different. If I ask the program to print the width of each branch as it | ||
width = 19 | width = 19 | ||
Line 46: | Line 47: | ||
</source> | </source> | ||
+ | <br /> | ||
+ | ==Misc. Important Notes== | ||
<br /> | <br /> | ||
* The variable <tt>trunk_ration</tt> is set to 0.49 in the recursive function. | * The variable <tt>trunk_ration</tt> is set to 0.49 in the recursive function. |