Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Temporal Databases Research And Practice Lncs 1399

Authors: Opher Etzion ,Sushil Jajodia ,Suryanarayana Sripada

1st Edition

3540645195, 978-3540645191

More Books

Students also viewed these Databases questions

Question

What is a bottleneck and how can you locate one?

Answered: 1 week ago

Question

Prepare an electronic rsum.

Answered: 1 week ago

Question

Strengthen your personal presence.

Answered: 1 week ago

Question

Identify the steps to follow in preparing an oral presentation.

Answered: 1 week ago