Question: You will use Turtle graphics to draw a picture containing multiple shapes of multiple colors and arranged to be visually pleasing. Although you are free

You will use Turtle graphics to draw a picture containing multiple shapes of multiple colors and arranged to be visually pleasing. Although you are free to decide the precise shape(s) and layout for your picture, some aspect of the picture must depend on a numeric value input by the user. For example, the input might determine the size of the shapes, the number of shapes, or their spacing.

Project Description / Specification Your program must:

1. Output a brief descriptive message of what the program does.

2. The program should prompt the user to choose between 2 options until the user enters 0 :

a. 0 to quit

b. 1 for circles

c. 2 for filled square spirals

3. On invalid input, the program should display an error message and reprompt.

4. If the user enters 1 , draw a picture containing multiple filled concentric circles of multiple colors. Repeatedly prompt for the input until the user supplies values of the correct form (discard incorrect inputs). Your prompt should say what form of input is needed. a. Input the number of circles to draw (greater than 1) b. Input the radius of the largest circle. It must be between 50 and 200 5. If the user enters 2 , draw a picture containing multiple filled squares in a spiral of multiple colors. The number of squares is an input that must be higher than 1. Repeatedly prompt for the input until the user supplies value of the correct form. Your prompt should say what form of input is needed.

a. Input the number of squares to draw (greater than 1)

b. Input the side of the squares. It must be between 50 and 200

6. turtle.clear() is useful before drawing the next figure.

7. If the user enter 0 , the program should exit.

In programming your solution, you must:

1. Use at least two repetition (while or for) statements.

2. Use at least one selection (if) statement.

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 Databases Questions!