Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In python OBJECTIVE You will learn how to use the Turtle module in Pythorn. THE PROBLEM You have to write several functions to draw shapes

In python image text in transcribed
OBJECTIVE You will learn how to use the Turtle module in Pythorn. THE PROBLEM You have to write several functions to draw shapes using the Turtle module. The shapes that your program must draw are: equilateral triangle, square, pentagon, hexagon, and octagon. Each function will receive as parameters the side length of the shape, the line color of the shape, and the fill color of the shape. The functions will not return any value. The main program will allow the user to prompt: a) The shape type (3-equilateral triangle, 4-square, 5-pentagon, 6-hexagon, 8-octagon, 1 = exit). b) The side length of the shape. c) The line color (1-red, 2- green, 3-blue, 4 yellow) d) The fill color (1-red, 2-green, 3-blue, 4-yellow) Your program must clear the window every time is drawing a shape. It must also continue to prompt the user to select a shape type until this value is equal to 1

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

Advances In Databases And Information Systems 22nd European Conference Adbis 2018 Budapest Hungary September 2 5 2018 Proceedings Lncs 11019

Authors: Andras Benczur ,Bernhard Thalheim ,Tomas Horvath

1st Edition

3319983970, 978-3319983974

More Books

Students also viewed these Databases questions

Question

What is paper chromatography?

Answered: 1 week ago

Question

Explain the cost of capital.

Answered: 1 week ago

Question

5. If yes, then why?

Answered: 1 week ago

Question

3. What changes should I be making?

Answered: 1 week ago