0% found this document useful (0 votes)
40 views2 pages

A1 - COMP1010 - Winter 2024

The document provides instructions for Assignment 1 in an Introduction to Computer Science course. It includes two questions - the first asks students to draw a static drone sketch using basic shapes and colors, while the second asks them to modify the sketch to make the drone movable and scalable according to mouse position.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views2 pages

A1 - COMP1010 - Winter 2024

The document provides instructions for Assignment 1 in an Introduction to Computer Science course. It includes two questions - the first asks students to draw a static drone sketch using basic shapes and colors, while the second asks them to modify the sketch to make the drone movable and scalable according to mouse position.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ASSIGNMENT 1

COMP 1010: International College of Manitoba


COURSE TITLE: Introduction to Computer Science 1
TERM: Winter 2024
Assignment 1

DUE DATE: SUNDAY, FEBRUARY 11TH, 2024 11:59 PM.

Preparation:
Q1: Review variables and final named constants.
Q2: Review active processing sketches using draw.

Notes:
 Name your sketches using your name, the assignment number, and the question number, exactly as in this
example: DentStuA1Q1 and DentStuA1Q2.
 Your program must run upon download to receive any marks.
 Submit a PDE file for each of Questions 1 and 2
 Assignments must follow the programming standards document published on Moodle.
 After the due date the dropbox will be closed and you will receive zero if you didn’t submit on time.
 You can submit only one time to the dropbox and you cannot delete the older version.
 These assignments are your chance to learn the material for the exams. Code your assignments
independently. We use software to compare all submitted assignments to each other, and pursue academic
dishonestly vigorously.

Assignment 1 Grading Guide: The marks for satisfying the requirements have been placed next
to them in square brackets [].

1
ASSIGNMENT 1
COURSE NUMBER: COMP 1010

Q1: Draw a drone [16]


Draw a drone using the shapes that have been taught to you in the class.
Figure 1 demonstrates the sample object. To complete Q1 your sketch should
meet the following criteria:

 Draw a drone similar to, but not the same as, the one shown here.[2]
 Use a canvas size of 500 by 500. [1]
 Your drone must have at least: [1]
o Some rectangles, ellipses, lines and triangles.
o Make use of at least two additional colors other than black
and white.
 The drone should have the following features
o A main drone body part [1]
o Four propellers [2]
o Propeller mounts connected to the drone body [1]
o Four circular (or semi-circular) propeller guards. [2]
 Use final named constants to set the size and position of the shapes that make up the drone. [1]
 Use the primitive data types int and float [3]
 At all times, your drone should be at the center of the canvas, and it should fill the entire canvas. [2]
 Note: This is a static Processing program (no setup or draw functions).

Q2: Scalable and movable: Drone. [24]


Modify your program Q1 to meet the following criteria:
 The cursor has to be in the center of your drone all the times, even when the drone is moving.[4]
 In the draw method, use both mouseX and mouseY so that, by moving your mouse, the ball moves in both
the x-axis and y-axis freely.[5]
 Use a canvas size of 500 by 500. [1]
 Note: This is an active processing program (with setup and draw). [4]
 You should consider the SCALE in all your calculations so by changing this variable, the drone becomes
smaller or bigger.[5]
 Use of following functions to help organize your code.[5]
o drawBody();
o drawTopLeftProp();
o drawTopRightProp();
o drawBottomLeftProp();
o drawBottomRightProp();
For demonstration refer to video files A1Q2Scale1.mp4 and A1Q2Scale3.mp4
Total marks: 40
End of Assignment 1

You might also like