Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ASSIGNMENT 1 COURSE NUMBER: COMP 1 0 1 0 Q 1 : Draw a Helicopter [ 1 2 Marks ] Draw a helicopter using the

ASSIGNMENT 1
COURSE NUMBER: COMP 1010
Q1: Draw a Helicopter [12 Marks]
Draw a helicopter 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 helicopter similar to, but not the same as, the one shown here.[1]
Use a canvas size of 500 by 500.[1]
Your helicopter must have at least: [1]
o One rectangle, ellipse, line and triangle.
o Make use of at least two additional colors other than black and white. o Note: Sample drawing and video has not been given any color. Use your creativity!
The helicopter should have the features as explained in Figure 1.[6]
o Cockpit and Cockpit Windows
o Fuselage
o Blades
o Main Rotor and Engine Cover
o Sync Elevator, Elevator Tail and Elevator Deval
o Tail Boom and Tail fin.
Use final named constants to set the size and position of the shapes that make up the helicopter. [1]
At all times, your helicopter 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).
Tail Fin
Blades
Main Rotor
Engine Cover
CockPit
CockPit Windows
Fuselage
Sync Elevator
Tail Boom
Elevator Tail
Elevator Decal
ASSIGNMENT 1
COURSE NUMBER: COMP 1010
3
Q2: Scalable and movable. [10 Marks]
Modify your program Q1 to meet the following criteria:
Use a canvas size of 500 by 500.[1]
The cursor has to be in the center of your main rotor all the times, even when the helicopter is moving.[3]
Change constant SCALE to a variable scale for this question. Consider scale in all your calculations so by changing this variable, the helicopter becomes smaller or bigger.[3] Requirement is that changing the value of scale changes the scale of the drawing appropriately.
Use of following functions to help organize your code.[5]
o cockPit();
o elevator();
o tailBoom();
o bladeAndRotor();
o Note: Create your own functions as and when needed. Please explain the purpose of the functions using comments. Note: This is an active processing program (with setup and draw).
Q3: Scalable based on mouse position [8 Marks]
Modify Q2 to meet the following criteria:
Change value of scale based on the position of the mouse on the x- axis. The helicopter is the smallest when the mouse pointer is at the left of the canvas. The helicopter is the largest when the mouse pointer is at the right of canvas. [6] Note: There is a possibility that the entire helicopter may not be visible after this change and that is OK!
Create a new function for the requirement. [2]
Hint: You will need to use the scaling problem equation to solve this problem. Even though, the formula is easily searchable, equation is provided in Lecture Notes Week 7-Slide 11
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions

Question

Be prepared to address excessive absenteeism

Answered: 1 week ago