Ask 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 drawn by this algorithm? forward forward turn forward turn forward forward turn forward turn

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

+3
Answers (1)
  1. 4 February, 05:27
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers