Question
write a program that produces the first image below, given restrictions. Break the program down into functions that do fundamental operations (e.g. like drawing a
write a program that produces the first image below, given restrictions. Break the program down into functions that do fundamental operations (e.g. like drawing a series of rectangles) and to design the parameters needed by those functions. Some of the functions will call the other functions.
Ground rules:
-
You may not have any variables other than local variables within functions. No variable declarations outside of functions. You may only have imports, function definitions, and one call to main() at indentation-0.
-
Only one call of turtles circle and two of forward (or backward), in the entire program. (You can use goto, but not with the pen down, or similar shenanigans.) Youll be writing your own functions to draw circles, etc.
-
Get a close match to the image given, but an exact pixel match isn't needed. Be sure you get the color darkening (which always involves reducing the prior color's values by 10%), the drop shadows, and the basic layout right.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started