1. Include a screenshot of your app's face drawing, and the code involved, showing the use of a loop and a procedure. You can take a screenshot on most Android devices by pressing the power button and the volume down button and the same time and then emailing the photo from the gallery to yourself, or uploading the image to Google Drive. To practice for the Create task, describe how two of the algorithms (procedures that you wrote) in the code combine to form a bigger algorithm (the drawFace procedure).
Answer
Two of the procedures, pen up and square 20, help form the larger procedure DrawFace because when the turtle is drawing the face, the penup is required after drawing the eyes and mouth, and the square20 is required to draw the eyes.
2. Can you draw a triangle with this set of Logo commands? Discuss how or why not.
Answer
You would not be able to draw a perfect triangle, it would be jagged. This is because the turtle that draws the code cannot move diagonally, which is required for a triangle. Instead, it would need to turn left and right while moving one pixel every time to create a diagonal line.
3. Discuss: If you were designing the Logo language, how would you change some of our basic commands so that it would be easy to draw a triangle and easier to draw other shapes -- i.e., what should the basic commands do that would make drawing easier.
Answer
Some basic commands i would add are the ability to draw a diagonal line. Id add a procedure so that the user could specify how long the diagonal line would be. In addition, id add a procedure to draw a circle which would require the steepness of a diagonal line to change as the turtle moves, forming a circle.
4. What weaknesses do you find in using the procedures (the abstractions) we gave you -- forward, turn -- for drawing simple shapes? How would you change the definitions of these procedures to make it easier to draw shapes? Give a specific example that illustrates how a more powerful set of procedures would improve things.
Answer
Weaknesses i found in the procedures for drawing simple shapes are that it is repetitive to add the same procedure multiple times in one block of code. To make it easier to draw, i would make a compound procedure that involves, for example, picking up the pen multiple times within one procedure. This would improve things because instead of adding the simple pen up procedure multiple times into a block of code, you could just add the more complex penup procedure just one to deliver the same effect.