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: