Ask Question
18 February, 03:10

Assuming that forward tells the Android to move forward by 10 pixels and turn tells it to turn right by 90 degrees, what shape would be drawn by this algorithm? forward forward turn forward turn forward forward turn forward turn

1. A square2. A right angle3. A rectangle4. A circle

+5
Answers (1)
  1. 18 February, 03:39
    0
    3. A rectangle

    Explanation:

    It moves two (02) units in one direction then changes its direction through 90 degrees, then it moves one (01) unit and changes direction and again moves two (02) units and turns and finally it moves one (01) unit.

    It cannot be circle because it turns through 90 degrees.

    It cannot be square because its length of movement is different. i. e. 1 vs 2.

    Therefore, it's a rectangle.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Assuming that forward tells the Android to move forward by 10 pixels and turn tells it to turn right by 90 degrees, what shape would be ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers