Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Rearrange the following lines of code to produce a program that creates a graphics window containing the following simple drawing: A blank canvas of 4

Rearrange the following lines of code to produce a program that creates a graphics window containing the following simple drawing:
A blank canvas of 400 x 400 pixels. The only colors on the canvas are black and white. A rectangle appears on the left of the canvas, with a width of 50 and a height of 200. A horizontal line appears on the middle right of the canvas, drawn from the the x, y point 200,200 to the x, y point 400,200. The text My Drawing overlaps the right side of rectangle, with the text My inside the rectangle, and the text Drawing to the right of the right edge of the rectangle.
Since images cannot be produced in this type of activity, the included ezgraphics module instead checks that the correct lines of code were added in the correct order. To run this code and produce an image, you can transcribe the code from Tester.py to any of the jupyter notebooks included in this section.

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

Intelligent Databases Object Oriented Deductive Hypermedia Technologies

Authors: Kamran Parsaye, Mark Chignell, Setrag Khoshafian, Harry Wong

1st Edition

0471503452, 978-0471503453

More Books

Students also viewed these Databases questions