Exit 98-380 Introduction to Programming Using Block-Based Languages (Touch Develop)
Question 3 of 5
0% complete
Q3 Hotspot

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.

Select the correct area(s) on the image.

Question diagram