logo Hurry, Grab up to 30% discount on the entire course
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Varun JakkaaScience
(/5)

886 Answers

Hire Me
expert
Ruth FrameLaw
(5/5)

635 Answers

Hire Me
expert
Hunter EdwardsEnglish
(5/5)

631 Answers

Hire Me
expert
Milton BlahaEconomics
(5/5)

998 Answers

Hire Me
Python Programming
(5/5)

you will be using turtles to create a small drawing/design which we refer to as a \'motif\'.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Question 1: Modularized Motif (20 points)

In this question, you will be using turtles to create a small drawing/design which we refer to as a 'motif'. Use the provided starter code (but rename it appropriately!). Also, make sure you download and play with the sample pumpkin motif. You have creative freedom over your choice of drawing as long as it fits the following requirements:

1. Your drawing must be modularized, this means each part of the drawing should have its own separate function (i.e., if you are drawing a happy face, you need a separate function for the eyes, for the nose, for the mouth, etc.).

2. Your drawing must be relative to the turtle's start position, which is in the middle of a bounding box. You don't know where the turtle is starting, so you can't use goto() commands, only commands that turn, move forward or backward, or set the direction of the turtle. In later questions of this assignment, the turtle's start position could be anywhere on the canvas. Use forward(), left(), right() and especially setheading(), functions to have the turtle draw a shape within the bounding box. There are some very useful constants defined in the starter and example code (BOX_WIDTH, NORTH, SOUTH, EAST, WEST). Use these constants to make moving your turtle around easier, and to make your code easier to understand. You can add other constants, too.

3. Your program should avoid magic numbers, (Ex. turtle.forward(93) or turtle.left(x+13)).

4. Your motif needs to make use of at least three colour variables. This will become more important in Question 2, but they must be used in Question 1. You can call these color variables whatever you want. Storing the colours in a list (as is done in the example motif) makes Question 3 much easier.

5. You must use at least five functions in your motif. One of these functions may be your draw function (a function that calls functions to draw other parts of your motif). See the provided example file on UM Learn.

6. HINT: Keep your drawing simple - don't try to draw something that has 20 different parts. Aim for at least 5 parts, but no more than 8.

You are given complete creative freedom over your choice of drawing (however, you can't copy the sample pumpkin code or anything that looks similar to it). A part of your grade will be awarded based on the uniqueness of your drawing. If your code is too similar to the pumpkin, you will get 0 for this part. You only need to use one turtle and a good tip is to draw from back to front. Starting back to front means your first function will draw the section in the background and the last function will draw a section in the foreground. (Example: Think about drawing a house. You start by drawing a square for the house, and a triangle for a roof, then on the square you add windows and a door and on the door you add a handle).

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme