Write the following functions: # Fill a rectangle with the specified color, center, width, and height. drawRectangle(color = "black", x = 0, y = 0, width = 30, height = 30): def # Fill a circle with the specified color, center, and radius. def draw Circle(color = "black", x = 0, y = 0, radius = 50): Write a main function that prompt the user for the parameters of function drawRectangel and call the above two functions. Here is a sample run: Enter color of the rectangle: red Enter x center of the rectangle: -100 Enter y center of the rectangle: -100 Enter width of the rectangle: 80 Enter height of the rectangle: 60 Python Turtle Graphics 0 X
Write the following functions: # Fill a rectangle with the specified color, center, width, and height. drawRectangle(color = "black", x = 0, y = 0, width = 30, height = 30): def # Fill a circle with the specified color, center, and radius. def draw Circle(color = "black", x = 0, y = 0, radius = 50): Write a main function that prompt the user for the parameters of function drawRectangel and call the above two functions. Here is a sample run: Enter color of the rectangle: red Enter x center of the rectangle: -100 Enter y center of the rectangle: -100 Enter width of the rectangle: 80 Enter height of the rectangle: 60 Python Turtle Graphics 0 X
Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter6: Sub And Function Procedures
Section: Chapter Questions
Problem 2MQ2
Related questions
Question
python
![Write the following functions:
# Fill a rectangle with the specified color, center, width, and height.
def drawRectangle(color = "black", x = 0, y = 0, width = 30, height = 30):
# Fill a circle with the specified color, center, and radius.
def drawCircle(color= "black", x = 0, y = 0, radius = 50):
Write a main function that prompt the user for the parameters of function drawRectangel and
call the above two functions.
Here is a sample run:
Enter color of the rectangle: red
Enter x center of the rectangle: -100
Enter y center of the rectangle: -100
Enter width of the rectangle: 80
Enter height of the rectangle: 60
Python Turtle Graphics
0
X](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F80090cb1-02c8-402e-a7d8-664cebdf1504%2F193c08c9-4d96-416d-8ab1-3f014e54b979%2F61nsr05_processed.png&w=3840&q=75)
Transcribed Image Text:Write the following functions:
# Fill a rectangle with the specified color, center, width, and height.
def drawRectangle(color = "black", x = 0, y = 0, width = 30, height = 30):
# Fill a circle with the specified color, center, and radius.
def drawCircle(color= "black", x = 0, y = 0, radius = 50):
Write a main function that prompt the user for the parameters of function drawRectangel and
call the above two functions.
Here is a sample run:
Enter color of the rectangle: red
Enter x center of the rectangle: -100
Enter y center of the rectangle: -100
Enter width of the rectangle: 80
Enter height of the rectangle: 60
Python Turtle Graphics
0
X
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
![Programming with Microsoft Visual Basic 2017](https://www.bartleby.com/isbn_cover_images/9781337102124/9781337102124_smallCoverImage.gif)
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
![Microsoft Visual C#](https://www.bartleby.com/isbn_cover_images/9781337102100/9781337102100_smallCoverImage.gif)
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,