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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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