How should you complete the algorithm?

HOTSPOT
You are creating an algorithm that moves a sprite from its current position to a new position represented by x and y, where x is the new horizontal position and y is the new vertical position. You will use the hypotenuse of a right triangle to calculate the sprite’s path, as shown in the following illustration.

You need to move the sprite to its new location along a straight line at a speed of 100 pixels per second.
How should you complete the algorithm? To answer, select the appropriate pseudocode segments in the answer area. NOTE: Each correct selection is worth one point.
Hot Area:

Download Printable PDF. VALID exam to help you PASS.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.