M30299 - Python Patchwork : Programming Assignment | UOP

Published: 06 Feb, 2025
Category Assignment Subject Programming
University University of Portsmouth Module Title M30299 Programming

Introduction

This coursework assignment is designed to give you practice in applying all of the main programming concepts you’ve seen in the module so far to solve a larger and more complex problem. The assignment will be marked out of 50 and carries 20% of the module marks (it is assessment item 3 of the module).

You need to submit your program via the module’s Moodle site by the deadline of 4.00pm, Monday 16 December 2024, and are required to demonstrate your submitted program in your 2-hour practical class timetabled in the period 17th-20th December 2024. Study this handout thoroughly in order to understand exactly what is expected from you for the coursework.

Your task

Your task is to write a program to display patchworks, an example of which is illustrated below. The actual patchworks your program will display will depend on your student number and on the user’s inputs.

M30299  Programming

Patchworks are square and made up of square patches. A patchwork can be of three sizes: 5 × 5, 7 × 7 or 9 × 9 patches. Each patch can be one of two different designs or it can be completely plain. It can be one of three different colours, the background colour is always white, and some patches include shapes with blank outlines. Every patch features a regular geometric design made up of lines, circles, rectangles and/or polygons and has dimensions 1 of 100 × 100 pixels. The two patch designs and the layout and colouring of the patchwork are not necessarily as given in the illustration above. They are determined by the final three digits of your student number, and are displayed in the tables on the final two pages. The layout and colouring of the patchwork are given by the antepenultimate (third last) digit of your student number. The two patch designs are given by the penultimate and final digits of your student number. For example, if your student number was 2000607, the patch designs and patch arrangement for a 5 × 5 patchwork with colours blue, green and red are those illustrated on page 1.

It’s important that your program draws the patch designs accurately, and that it draws the correct designs, layout and colouring – you will receive no credit for drawing the wrong patch designs or patch arrangement.

Your program must draw the patchwork using the facilities provided in the graphix module (Line, Circle etc.); no other approach is permitted. 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. You should not use major parts of the Python language which we haven’t yet covered in the module; for example, do not use exception handling and do not define your own classes.

Main program requirements

Your program should begin by prompting the user, using a text (shell)-based interface, to enter, in this order:

  • the patchwork size (i.e. a single figure giving the common width & height in terms of patches);
  • each of the desired three colours, entered one-by-one (separate prompts); the program should ensure that the colours are all different from each other.

The program’s user interface should be easy to use, helpful and robust; e.g., on entering invalid data, the user should be given appropriate feedback and re-prompted until the entered data is valid. (Valid sizes are 5, 7 and 9, and valid colours are red, green, blue, magenta, orange and purple.) Once these details have been entered, the patchwork should be drawn in a window of the appropriate size and with a white background. For example, if the user enters size 5, and colours blue, then green and finally red, then (in the case that your student number ends in 607) the patchwork shown on page 1 should be drawn in a window of width 500 pixels and height 500 pixels.

Are you facing issues with your M30299 programming assignment? You are wondering who can do my assignment on time? Then you have come to the right place as we provide you instant assignment solutions as per your customized requirements. Our UK assignment writers provide free samples on all topics for your guidance and we also provide programming assignments. So what are you still wondering, if you want to submit your assignment within the deadline then contact our Workingment team today.

HNN120 Quality and Safety in Healthcare Assignment 01 Brief | Deakin

This assessment will help you to demonstrate Unit Learning Outcome 1: Outline the Evolution of Nursing as a Profession. Undertaking this task will also help you to develop skills in locating and utilising evidence, and in writing for an academic audience.

PRJ5001 Project Management Profession Assessment 2 Brief | APIC

The purpose of this assessment is to analyse a real-life project, either completed (within the last five years) or ongoing to evaluate and discuss its business case, project charter, and stakeholder register.

PRJ5001 Project Management Profession Assessment 4 Brief | APIC

The purpose of this assessment is to create a single-page A3 size poster with important findings and conclusions from Assessment 3: Project Case Analysis. Students are also required to present the same as an oral presentation. The presentation will be conducted live.

PRJ5001 Project Management Profession Assessment 3 Brief | APIC

The purpose of this assessment is to analyse a given project case study and to demonstrate a critical understanding of the project case. For successful completion of the assessment, students are required to research and read the case study and analyse it to provide an evaluation of reasons for the controversy of this project.

PUBH6206 Health Promotion and Community Health Assessment 2 Brief | Torrens University Australia

Students are required to write a health promotion program plan of 2000 words (+/- 10%) in length. Students are required to follow the instructions on how to develop their plan. You will be provided with a list of communities/population groups and health issues by your Learning Facilitator. You are required to choose one of the health issues and community/population groups to develop a specific health promotion plan.

7LEAD027W Learning and Managing in a Global Context SEM 2 Assessment Brief | University of Westminster

Reflective journals are a tool used in leadership development.  They enable the developing leader to pause and take stock; review achievements, and reflect on the progress made towards goals.  Writing in a journal creates a safe space to reflect dispassionately on personal experiences and observations, which in turn leads to the identification of both personal strengths and derailing behaviours.

BM4106 Critical Issues in Business and Management Research SEM2 Assignment 2 Brief |UCLan

This assessment is worth 60% of the overall module mark. This Assessment Pack consists of a detailed assignment brief, guidance on what you must prepare, and information on how class sessions support your ability to complete successfully.

FINA1163 Financial Resource Management Assignment Brief | University of Greenwich

This module aims to equip students with a Financial Management toolkit, to engage in International Business Finance matters which postgraduates in International Business should be able to address. The goal is to analyse how small, medium and large firms finance their economic activities in the global economy.

CCMT10416 Earth Systems Assessment Brief | NTU University

This assessment aims to facilitate a deeper understanding of the Carboniferous geology of Derbyshire and the Permo-Triassic geology of Nottinghamshire. You will do this by exploring the geological features of several field sites during the field course and relating this to published academic literature.

5025CMD Data Science for Business Assignment Brief | CU

Create a report that examines how Data Science contributes to IT management decision-making by analysing and visualising real datasets and building a predictive model. Your report should explore how Big Data analytics support business strategy, business processes, and decision-making in an organisation through various tasks.

Online Assignment Help in UK