Carleton University Tutorial 01 of 10 Your submission for this tutorial must include your full name...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Carleton University Tutorial 01 of 10 Your submission for this tutorial must include your full name and you nine-digit student number as a comment at the top of every source file you submit. All source code files must be written using the Python 3 programming language and must run on the course's official virtual machine. COMP 1405/1005 (Winter 2023) "Introduction to Computer Science I" Exercise A: "The Swan" For this exercise you will use the pygame.draw module to reproduce the image of Hilma af Klint's "Svanen" (i.e., "The Swan"), depicted right. In order to complete this task, you will need to: read about pygame's "arc" function in the documentation online Your submission for this exercise: must be a source code file with filename 'comp1405_w23_#########_tutorial_01_a.py' must create a window of dimensions at least 300 300 Exercise B: "Style 1305" must use the "rect" and "arc" functions from pygame.draw must be drawn using the exact same six (6) colours that were used in the source image need not worry about visual artifacts (i.e., broken lines) occuring with pygame's "arc" function For this exercise you will use the pygame.draw module to create a figure in a style that was once known as "Style 1305". Figures of this style always have black curves for arms and legs, black circle hands, a black body mady from a circle and a rectangle, and a head made from a black circle, with a black square nose, a white curved mouth, one white eye, and one black eye. Samples of this style are depicted right, but your design must be unique. In order to complete this task, you will need to: plan out a figure that includes at least one "prop" item read about pygame's "polygon" function in the documentation online Your submission for this exercise: must be a source code file with filename 'comp1405_w23_#########_tutorial_01_b.py' must create a window of dimensions at least 300 300 must use the "circle" and "polygon" functions to create a distinct head and body must use the "arc" function to create the arms, legs, and mouth Both Exercises A and B must use pygame.time.delay() to keep the window open for 5 seconds after drawing 2 At the time of creating this document, this information could be found at https://www.pygame.org/docs/ref/draw.html 3 You must replace the number signs in the filename with your official nine-digit student identification number. Carleton University Tutorial 01 of 10 Your submission for this tutorial must include your full name and you nine-digit student number as a comment at the top of every source file you submit. All source code files must be written using the Python 3 programming language and must run on the course's official virtual machine. COMP 1405/1005 (Winter 2023) "Introduction to Computer Science I" Exercise A: "The Swan" For this exercise you will use the pygame.draw module to reproduce the image of Hilma af Klint's "Svanen" (i.e., "The Swan"), depicted right. In order to complete this task, you will need to: read about pygame's "arc" function in the documentation online Your submission for this exercise: must be a source code file with filename 'comp1405_w23_#########_tutorial_01_a.py' must create a window of dimensions at least 300 300 Exercise B: "Style 1305" must use the "rect" and "arc" functions from pygame.draw must be drawn using the exact same six (6) colours that were used in the source image need not worry about visual artifacts (i.e., broken lines) occuring with pygame's "arc" function For this exercise you will use the pygame.draw module to create a figure in a style that was once known as "Style 1305". Figures of this style always have black curves for arms and legs, black circle hands, a black body mady from a circle and a rectangle, and a head made from a black circle, with a black square nose, a white curved mouth, one white eye, and one black eye. Samples of this style are depicted right, but your design must be unique. In order to complete this task, you will need to: plan out a figure that includes at least one "prop" item read about pygame's "polygon" function in the documentation online Your submission for this exercise: must be a source code file with filename 'comp1405_w23_#########_tutorial_01_b.py' must create a window of dimensions at least 300 300 must use the "circle" and "polygon" functions to create a distinct head and body must use the "arc" function to create the arms, legs, and mouth Both Exercises A and B must use pygame.time.delay() to keep the window open for 5 seconds after drawing 2 At the time of creating this document, this information could be found at https://www.pygame.org/docs/ref/draw.html 3 You must replace the number signs in the filename with your official nine-digit student identification number.
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
Liang Company began operations in Year 1. During its first two years, the company completed a number of transactions involving sales on credit, accounts receivable collections, and bad debts. These...
-
The ordinary share capital of W Ltd (which is a trading company) is owned 30% by X Ltd, 25% by Y Ltd and 45% by Z Ltd. All of these companies are UK resident and they prepare accounts to 31 March....
-
How are you better prepared for your professional requirements after completing project management?
-
Figure shows an objects acceleration-versus-force graph. What is the objects mass? a (m/s?) 4 2- 1 F (N) 1.0 0.5 3.
-
You are provided with the profit centre responsibility accounting reports for Volantas Department Stores. Required (a) Explain the relationship between the three profit responsibility reports for...
-
The following list identifies several potential cost drivers for a manufacturing company that makes eight products. The company uses a JIT production system so it stores finished products for a very...
-
The X hotel desires to earn after-tax income of $150,000 in 2021. Its average daily rate (ADR) is $70, and its variable costs per room sold equal $40. Its annual fixed costs total $160,000, and its...
-
Refer to Problem 8.25 for Stebbins Corporation for Year 1, its first year of operations. Exhibit 8.31 shows the amounts for the Canadian subsidiary for Year 2. The average exchange rate during Year 2...
-
After reading chapter 4 describe the type of leader that you want to be in your career Identify specific behavior you plan to use as a leader and behavior that you will not use
-
The opportunity cost of any decision that you make involves giving up something. This is your highest alternative of a decision to accomplish an activity. Explain your opportunity cost of taking this...
-
The North West Ontario Health Authority (NW) is changing its processes as an organization. Over the last three years the government agency has tried to operate more like a business. Since it has a...
-
How does containerization differ from traditional virtualization in terms of resource isolation, overhead, and application deployment? What are some common security concerns associated with each ?
-
1) The tensile test has been applied to a 6150 Steel specimen. The dimensions and properties are given below: Specimen diameter: Peak load: Extension at peak load: Strain at peak load: Load at onset...
-
Assume a price decrease from currently 5.00 to 3.00 for your product. Calculate the price elasticity of demand. Is the demand elastic or inelastic?
-
Moist extruded catalyst particles are placed as a packed bed (0.5 m thick, 1 m^2) in a through circulation dryer in which air (density =1.1630 kg/m^3 and viscosity = 18.537 x10^-6 Pa.s) at 300 K and...
-
Carlton Stokes owns and operates a car-detailing business named SuperShine & Detailing. For $150, Carltons business will hand wash and wax customers cars, vacuum the interior, and thoroughly clean...
-
During 2012, Tom sold Sears stock for $10,000. The stock was purchased 4 years ago for $13,000. Tom also sold Ford Motor Company bonds for $35,000. The bonds were purchased 2 months ago for $30,000....
-
During the 2012 tax year, Irma incurred the following expenses: Union dues..............................................................$275 Tax return preparation...
-
David and Darlene Jasper have one child, Sam, who is 6 years old. The Jaspers reside at 4639 Honeysuckle Lane, Los Angeles, CA 90248. David's Social Security number is 577-11-3311, Darlene's is...
-
Eq. 7.36a is written for the conservation of momentum in y direction. Obtain Eq. 7.36-b wherein the stream function is independent variable. Eq. 7.36(a,b) y - v v +(1-y/R)v- + momentum: u u R-y + R P...
-
Using Maslen method, find the approximate value of pressure and density at the junction of the sphere and the cone of Problem 7.29 at Mach number 8. Problem 7.29 An empirical way to determine shock...
-
Show that the derivative of the boundary layer edge velocity is given by Eq. 7.64 for the figure given below. Eq. 7.64 M>>1 Ue dx R dy/dx = 1/R
Study smarter with the SolutionInn App