Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic Net Database Programming

Authors: Rod Stephens

1st Edition

0789726815, 978-0789726810

More Books

Students also viewed these Databases questions

Question

How many multiples of 4 are there between 10 and 250?

Answered: 1 week ago

Question

How do members envision the ideal team?

Answered: 1 week ago

Question

Has the team been empowered to prioritize the issues?

Answered: 1 week ago

Question

b. Does senior management trust the team?

Answered: 1 week ago