Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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]

BOURSE NERCOMPE Tail Bloom Cocket Windows Elevator Syne Main Fusclage (, Decal Cockle Hades BOURSE NERCOMPE Tail Bloom Cocket Windows Elevator Syne Main Fusclage (, Decal Cockle Hades

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

Building Database Driven Catalogs

Authors: Sherif Danish

1st Edition

0070153078, 978-0070153073

More Books

Students also viewed these Databases questions

Question

If you had a warning label, what would yours say?

Answered: 1 week ago