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

  Using sjn in what order should they be processed

five jobs (a b c d e) are already in the READY queue waiting to be processed. their estimated CPU cycles are respectively 2 10 15 6 and 8. using SJN in what order should they be processed?

  Is telecommunication is elastic or inelastic

Is telecommunication is elastic or inelastic

  Conversely determine the effect of information technology

q1. evaluate and discuss the human resource security privacy and stability issues affected by information technology.

  Company called aphrodite it staffing solution

Based on a company called Aphrodite IT staffing solution,

  Document the current state of the foundation for execution

Document the current state of the foundation for execution for Adopt-A-Farm using a standard Enterprise Architecture Framework (e.g., Zachman, POLDAT, or TOGAF).Explain your choice of framework.

  Determine many blocks of main memory in direct-mapped cache

Asumme that computer using direct-mapped cache has 2^24 words of main memory and cache of 64 blocks, where each cache block contains 16 words. How many blocks of main memory are there?

  Compute probability distribution and conditional probability

Write down solution this question in cryptographic. Assume encryption function is defined compute probability distribution and conditional probability distribution.

  Review the content page for this extensive manual

Visit the U.S Postal Service web site at www.usps.com/cpim.ftp/hand/as805/. Review the content page for this extensive manual. Compare this program to the National Institute for Standards and Technology documements (NIST).Which areas are similiar to ..

  Write a programme that force the player-controlled class

write a programme that Force the player-controlled class Dog to fall asleep when its energy reaches 0, and once it wakes up, set its energy to 100.

  What extent do specific technologies help companies

More generally, to what extent do specific technologies help companies gain an edge over their competitors? How easy or difficult would it be to initiate such advantages

  Risk identification

You have been assigned as the manager on a project to develop a new application system for your business partner. You were given two weeks to develop a project plan and high level cost estimates.

  Importance of preinstallation and postinstallation tasks

Describe the importance of preinstallation and postinstallation tasks

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