Question: You must write 4 different function definitions; each draws a simple drawing, known as a scene element. Examples of a simple drawing are the tree

You must write 4 different function definitions; each draws a simple drawing, known as a scene
element. Examples of a simple drawing are the tree or the tree cluster in the
TreeTest.py. The
requirements of your function definitions are as follows:
Each function definition must draw at least two GUI shapes, or call other functions in your
solution at least 3 times (like the tree cluster function)
Each function definition must have parameters that allow the call to specify the location and
size of the drawing. You can add an additional parameter to specify color, if you'd like.
Each function should draw a straight vertical line, using the location and size parameters,
for testing purposes, to make sure your function uses the parameters correctly. For
example, if the documentation says the drawing is a certain height, this test line will help
you ensure that it is. You should comment out the code to draw the straight line, but leave
it in the file so that I can uncomment it and run it.
Examples of what your functions might draw are a small house, a car, a boat, a bug, a musical
instrument, a bird etc, as well as clusters of any other drawings. You can have at most two
functions that produce abstract drawings.
In main, call each of your functions 3 times: main should contain a total of 12 functions calls to
your function definitions. Your final solution will display 12 elements in the scene.
Limit your solution to using the language features from the chapters we've covered so far.
 You must write 4 different function definitions; each draws a simple

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!