Question: Using Python: In this week's assignment, you will create a simple computer graphic. This assignment will demonstrate the ability to import and use Python modules,
Using Python: In this week's assignment, you will create a simple computer graphic. This assignment will demonstrate the ability to import and use Python modules, and program a graphics package. Programming Specifications:
Start off the script by importing the turtle module.
Define a function called DrawFountain. This function will draw the playful fountains and water pools around the clock tower. Hint: this is nothing more than a series of connected half circles.
Define a function called DrawBase. This function will draw a cement base coming out of the water pool, with a smaller brick base on top of it To do this, you'll need to think carefully about distances, turns, and picking updown the pen.
Define a function called DrawTower. This function will draw two skinny but tall rectangles.
Define a function called DrawClock. This function will draw the main clock structure, with a circle in the middle to represent the clock.
Define a function called DrawSpire. This function will draw the top platform and a triangular roof.
In the main portion of the script, set up the turtle instance and canvas. Ask the user for a pen color, and use the input to set the pen color. Then the call the functions defined above to construct the clock, piecebypiece, rendering the simple geometric representation depicted above.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
