Difference between revisions of "CSC111 Final Exam 2015b"

From dftwiki3
Jump to: navigation, search
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''' and the image '''finalc.jpg''' or '''finalc.png'''.  Submit both to Moodle, in the Final 1 Program and Final 1 Image sections.
+
* 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].
* 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 these colors in the program that generated the image above: "red", "orange", "blue", "lightgreen," and "brown".
+
* 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 starts drawing the tree, I get this:
 
 
   
 
   
 
  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.

Revision as of 07:58, 12 December 2015

--D. Thiebaut (talk) 21:22, 6 December 2015 (EST)



...