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 drawRectanglecolor "black", x y width height : # Fill a circle with the specified color, center, and radius. def drawCirclecolor "black", x y radius : 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
