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

  Which ease of learning conflicted with ease of use

Consider at least two (2) software products that you use or have used in the past. Provide at least two (2) examples in which ease of learning conflicted with ease of use. Propose a solution to the conflicts that you have indicated. Justify your resp..

  Exicutive memo to the board

Submit an Executive Memo addressed to the CIO and the board of directors. Last week, the CIO reviewed your presentation and has decided to move forward with your recommendations for improvements.

  Produce a diagram of a proposed network

Produce a diagram of a proposed network

  What are quality of service metrics?

What are Quality of Service metrics?

  Riordan manufacturing

A full description of the new system, a description of its components, and the benefit it will provide to Riordan Manufacturing (Virtual Organization)

  Write a c++ program that calculates distance of a golf ball

write a C++ program that calculates the distance of a golf ball fallen in with each one-seconds interval drop from airplane calculate the distance in the current time Interval (ft) and total distance the golf ball falls at the end of each interval..

  How many clock cycles are needed

Indicate data dependency in the code below. Assuming there is no forwarding in the pipeline, howmany clock cycles are needed to finish the program? If full forwarding is used, how many clock cycles are needed?

  Verify that all required fields are complete

Use alerts to inform the user if information is missing and focus on the missing field for them to provide the needed data.

  Wal-marts stance on corporate social responsibility

Describe the Wal-Mart's stance on corporate social responsibility (CSR) and Discuss the connection between the CSR program and why it is necessary to the specific industry.

  Design an e?cient algorithm to handle a sequence

Design an e?cient algorithm to handle a sequence of such operations.

  Leverage business intelligent-create meaningful information

Include how we can leverage business intelligent to create meaningful information and decision making systems to help keep cost and profits.

  Determine the range

then performs the following analysis on the numbers: Determine the average number Determine the maximum number Determine the range (maximum - minimum) Displays a histogram that shows the numbers in each five-unit range

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