Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'd like to create a program that generates random shapes(rectangles and circles) in python . However, I don't want to use turtle. I'd like to

I'd like to create a program that generates random shapes(rectangles and circles) in python. However, I don't want to use turtle. I'd like to enter a drawing file name to create and then have the user enter the number of shapes to make.

For example, "Enter the drawing file name: draw1.txt", "Enter the number of shapes to make: 15"

This will write 30 shape lines to the file draw1.txt.

The lines should be written similar to below:

Circle; 80, 72; 15; 32, 208, 86 Rectangle; 145, 106; 421, 274; 32, 208, 205

Thank you.

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

Essential Data Protection For Estate Agencies In Singapore 2024

Authors: Yang Yen Thaw Yt

1st Edition

B0CQK79WD3, 979-8872095392

More Books

Students also viewed these Databases questions

Question

What is conservative approach ?

Answered: 1 week ago

Question

What are the basic financial decisions ?

Answered: 1 week ago

Question

4. What are the current trends in computer software platforms?

Answered: 1 week ago