Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON 3.6.5 QUESTION Nature Art,tuetle questions 1. We must use Python 3 (the Python IDLE version used in our CSIL lab) to write our program

PYTHON 3.6.5 QUESTION Nature Art,tuetle questions

1. We must use Python 3 (the Python IDLE version used in our CSIL lab) to write our program

2. Our program is to execute as soon as one has pressed the F5 key or has selected the option Run -> Run Module from the Python IDLE menu. No user input is required in this assignment. This is to say that the user must not be prompted for any input data once our nature scene Python program has started executing. It executes all on its own.

3. We cannot make use of Python modules that must first be downloaded on a computer before they can be used. We can only use Python modules that are already available on the computer (available by simply using the Python statement import in our Python program).

4. Our drawing must be composed of at least 30 shapes (Each shape must be labelled in the code using comments: e.g. # Shape 31. A red football in the air.). we can count 9 shapes: 2 rectangles, 1 square, 3 circles, 2 semi circles (note that 2 semi circles drawn together count as 1 shape, but here, the 2 semi circles are not drawn together so they count as 2 shapes) and 1 quarter of a circle.

5.Our drawing must include at least 10 colours. ,

Some of the shapes our program draws must be filled in.

6.Our program must include at least 6 for loops.

7.Our program must include at least 8 functions:

4 of them must be void functions: functions that do not return any value (possibly doing drawings and/or pen movements, or creating more complex shapes), Note that these 4 functions may or may not require parameters. 6 of them must require parameters (the number of parameters is up to us). Note that these 6 functions may or may not be void.

we can count 3 void functions that require parameters and 3 incomplete functions. Of course, we cannot submit a program with incomplete functions.

8. We have applied the generalization guideline when we created all our functions. This is to say that our functions are as general as they can be. They are designed in such a way (with parameters and/or returned value) that they can solve several similar problems.

9.None of our code is repeated. This is to say that we encapsulated repeated code into functions and have called these functions whenever needed.

10.All our functions terminate with a return statement.

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_2

Step: 3

blur-text-image_3

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

Databases Demystified

Authors: Andrew Oppel

1st Edition

0072253649, 9780072253641

More Books

Students also viewed these Databases questions