A1 - COMP1010 - Winter 2024
A1 - COMP1010 - Winter 2024
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
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).