Difference between revisions of "CSC111 Final Exam 2018"

From dftwiki3
Jump to: navigation, search
Line 53: Line 53:
  
 
* Submit your program in the '''Final Exam PB 1''' section on Moodle.
 
* Submit your program in the '''Final Exam PB 1''' section on Moodle.
 
+
<br />
 +
=Problem 2: An Orange Tree =
 +
<br />
 +
Write a well documented and organized Python program that will generate a tree ''as close to the tree shown below'' as possible.  You should not reproduce the text in the image;  '''just the tree, its colors, and its fruit.'''
 +
<br />
 +
<center>[[Image:FractalTreeWithLeaves.png| 500px]]</center>
 +
<br />
 +
* Call your program '''final2.py''' and the image '''final2.jpg''' or '''final2.png'''.  Submit both to the same URL indicated in Problem #1.
 +
* Note: To change the color of a '''line''' with the graphics library, you should use the '''setOutline()''' method rather than the '''setFill()''' method.
 +
* I used only 3 colors to generate the tree above: "orange", "blue", and "brown".
 +
<br />
 +
<br />
 +
<br />
 
</onlydft>
 
</onlydft>

Revision as of 14:41, 26 April 2018

D. Thiebaut (talk) 11:39, 26 April 2018 (EDT)



...