Difference between revisions of "CSC111 Final Exam 2018"
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> |