Creating Flexible Functions:
A Single Tree in the Forest
Go to CMU CS Academy and write your program in Sandbox.
Save your program as: [firstinitialLastname][Link]
Create a program that will draw a single tree in the forest.
Program Requirements
● Must use at least two (2) functions with one function just for the tree
● Program must have a function to create two (2) of these backgrounds:
○ Day Scene
○ Sunset Scene
○ Winter Scene
● One function must include at least one parameter
● Use only call functions to draw scene
Rubric:
2 points Uses good naming rules for Functions and Parameter(s) and meets
requirement for minimum of 2 functions and 1 parameter
2 points Output of each scene when call functions are used
2 points Commenting is used in program
2 points Extends creativity/knowledge beyond requirements given either
through design (output) or programming knowledge
BE CREATIVE AND HAVE FUN! HAPPY CODING!