Question: Write the following functions: # Fill a rectangle with the specified color, center, width, and height. def drawRectangle ( color = black, x = 0

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!