Patch features a regular geometric design

Assignment Help Basic Computer Science
Reference no: EM13934670

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

Reference no: EM13934670

Questions Cloud

Create a separate class that is used to define transaction : Allow user to enter starting balance.
Diagnosis of ischaemic stroke : Given that the diagnosis of ischaemic stroke has already been confirmed, identify and explain two other issues/problems for Mrs Middleton that emerge from your analysis of the data
How many amino acids would this dna encode : Double stranded DNA isolated from a bacteriophage has a molecular weight of 2.1x10E8 Da. Using this information, how many amino acids would this DNA encode?
Recognize that those cash flows are uncertain : You are considering acquiring a firm that you believe can generate expected cash flows of $12,000 a year forever. However, you recognize that those cash flows are uncertain. a. Suppose you believe that the beta of the firm is. 6.
Patch features a regular geometric design : 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 s..
Strategies used to improve communication between nurses : Communication, both verbal and written, is an important feature of health care ,yet one which poses a challenge to both novice and experienced nursing staff.discuss some strategies which could be used to improve both written and verbal communicati..
What is expected dividend in each of the next three years : Integrated Potato Chips paid a $2.40 per share dividend yesterday. You expect the dividend to grow steadily at a rate of 6% per year. a. What is the expected dividend in each of the next 3 years?
If the nacl solution has a special role in ionization : We made one to one solutions of onion DNA that we precipitated and a 4% NaCl soln. We measured the amount of DNA using spectrophotometers. When we boiled the solution before measurement, the NaCl precipitated. This made the solution cloudy and the..
Explain how the findings contribute to nursing knowledge : In today's healthcare settings such as critical units where we deal with mechanical ventilation, and sedation administration, as a nurse we do not realize how much harm can be cause with prolonged sedation administration to these critical patients..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Declares several circle objects

Declares several Circle objects

  How many pages are needed to store the entire job

How many pages are needed to store the entire job?

  Create a program with the following specifications

Create a program with the following specifications: Reserve space in memory for an array of words of size 10. Use the '.space' directive. The array is called my array.

  Compare and contrast the binary search trees

Compare and contrast the Binary Search Trees (BST) featuring the balancing operation implemented with the AVL trees.

  What potential objections are anticipated?

What potential objections are anticipated?

  How can she increase the number of files

A Microsoft Word user noticed that another user in her department has more than four files listed in the recently used files list in the Files pull-down menu. How can she increase the number of files listed on her computer

  Problem outlining the business risks

Ddescribe the problem outlining the business risks you identify in the current description - It is also important to list any questions that need to be directed to, and answered by, the sponsor in preparation for the business case.

  Define advertising design in order to ensure better impact

The problem statement is, "To improve the advertising design in order to ensure better remembrance and impact on the audiences" Advertising is an essential element in the present day organizations

  Understand the concept of bootstrapping

It is essential for any entrepreneur to understand the concept of bootstrapping. Bootstrapping is doing anything and everything to conserve capital for only the things that generate revenue.

  A week after the upgrade it is foud out that there are some

while maintaining your companys configuration management it is determined that you need to upgrade your switches. after

  Basic forms of conducting international business

Discuss the basic forms of conducting international business, and basic international business strategies.

  Create a one page outline for computer crimes

How does technology effect ethics - what are the social, economic, political, and global attributes of your topic?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd