Difference between revisions of "CSC111 Final Exam 2015b"

From dftwiki3
Jump to: navigation, search
Line 4: Line 4:
 
<br />
 
<br />
 
=Fractal Orange Tree=
 
=Fractal Orange Tree=
<br />
 
[[Image:FractalOrangeTree.png|center|600px]]
 
 
<br />
 
<br />
 
Write a well documented and organized Python program that will generate a tree ''identical to the tree shown below''.  Your program must generate a tree as close as possible to the one shown.  You should not reproduce the text in the image;  '''just the tree, its colors, its leaves, and its fruit.'''
 
Write a well documented and organized Python program that will generate a tree ''identical to the tree shown below''.  Your program must generate a tree as close as possible to the one shown.  You should not reproduce the text in the image;  '''just the tree, its colors, its leaves, and its fruit.'''
Line 51: Line 49:
 
* 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.
 
* You have to figure out how to modify the recursive function to make it display the leaves and the oranges.  <font color="magenta">Your program should not generate the leaves or oranges outside the recursive function.</font>
 
* You have to figure out how to modify the recursive function to make it display the leaves and the oranges.  <font color="magenta">Your program should not generate the leaves or oranges outside the recursive function.</font>
 +
* The leaves have radius 10.  The oranges have radius 20.
 
<br />
 
<br />
 
<br />
 
<br />

Revision as of 07:49, 12 December 2015

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



...