Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Python Coursework: A Patchwork Sampler Your task is to write a program to display patchwork samples, of the form given below: A patchwork sample is made up of patches of two different designs. Patchworks are square and can be of three different sizes: 5 × 5, 7 × 7 and 9 × 9.

They are coloured by cycling continuously through four colours (red, green, blue and magenta in the example above) as we move from left-to-right along each row, and from the rightmost patch of each row to the leftmost patch of the next.

Each patch features a regular geometric design made up of lines, circles, rectangles and/or polygons and has dimensions of 100 × 100 pixels. The two patch designs and the layout of patches are not necessarily as given in the sample above. They are determined by the final three digits of your 6-digit student number, and are displayed in the tables on the final two pages. The layout of the patch designs is given by the antepenultimate (fourth) digit of your student number. The two patch designs are given by the penultimate (fifth) and final (sixth) digits of your student number. The patch designs and arrangement shown in the figure above would be used if your student number was, for example, 777032.

It's important that your program draws the patch designs accurately, and that it draws the correct designs with the correct arrangement - you will receive no credit for drawing the wrong patch designs or the incorrect arrangement.

Your program should draw the patches using the facilities provided in the graphics module (Line, Circle etc.), and must not use bitmapped images. The designs are intended to test algorithm development skills (e.g. they should involve the use of one or more for loops). For some of the designs, it will be useful to remember that shapes drawn later appear on top of those drawn earlier

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91605556

Have any Question?


Related Questions in Computer Engineering

Espn pays the nfl 11 billion per year for 8 yrs for the

ESPN pays the NFL $1.1 Billion per year for 8 yrs for the right to exclusively televise football. What is the NPV of the investment if the parent Disney CO has an opportunity interest rate that is equal to the cost of ca ...

Need a use case diagram for a case studythe case studypaul

Need a use case diagram for a case study: The case study Paul is the Director of IT Services for a consulting firm Avant. The firm has been growing fast since it was launched in 2010. With over 100 employees and hundreds ...

Sub classassume super class and methods defined in question

Sub Class Assume Super Class and methods defined in question VIII Assume a Sub class named RunSomeSuper Write the Begin method Construct an instance of SomeSuper with parms of your choosing Just the Begin method, not the ...

Question suppose you are now acting as a consultant to an

Question : Suppose you are now acting as a consultant to an organization of your choice that has one or more specific compliance requirements. Considering this scenario, respond to the following: • Describe your selected ...

How do you calculate the annual interest rate of 12

How do you calculate the annual interest rate of 12% compounded monthly. I know how to do for annually but not monthly. You are offered the opportunity to put some money away for retirement. You will receive 10 annual pa ...

Will anyone help me with this and give me the explain how

Will anyone help me with this and give me the explain how did you get the answer? No coding necessary. Give truth tables for each the following Boolean expressions. a) not (P and Q) b) (not P) and Q c) (not P) or (not Q) ...

Explain the difference between penetration tests and

Explain the difference between penetration tests and security tests. Emphasize that this book will explain things from a security testing perspective.

Question suppose that your uncle is a real estate agent and

Question : Suppose that your uncle is a real estate agent and he decided to have a web-site to list his available real estate properties. And use a laptop computer to show clients these properties. What hardware is neede ...

You work in a veterinarians office and need to organize the

You work in a Veterinarian's office and need to organize the data on pets that you treat. In your database, you want to keep track of the following information: Customer information: Name Address City State ZIP Phone # Y ...

What happens when volatility increases what does volatility

What happens when volatility increases? What does volatility percentage mean?

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As