Be sure to provide screenshots along with your explanations.
Include a screenshot of an interesting design that your Logo app made and a screenshot of the code that created it. Press the power button and volume down at the same time to take a screenshot.
The code above creates 6 shapes that are spaced out. The code starts out by moving the sprite left 100 pixels then drawing a triangle, the code for drawing a triangle is a separate procedure which turned sprite 120 degrees and mover forward 25, repeat 3 times. The sprite then moves forward 10 pixels and draws a pentagon by turning 72 degrees and move forward 25 pixels, repeat 5 times. The sprite then moves 50 pixels and draws a hexagon by moving forward 25 pixels and turning 60 degrees, repeated 6 times. The sprite moves 55 pixels next and draws an octagon by moving forward 20 pixels and turning 45 degrees, repeated 8 times. Next, the sprite turns right and moves forward 150 pixels to make room for the next shape which is a square flower, which is drawn by turning 72 degrees, move forward 100 pixels, then turning 20 degrees, after repeats 40 times. The sprite then moves 120 pixels to draw a circle flower by, moving forward 5 turning 10 degrees, then turning 25 degrees then moves forward 30 pixels.
Include this image and code in your write-up document, below.
The lesson here is that our choice of abstractions, in this case, the use of parameters in our Logo commands, affects the kinds of problems we can solve and how we solve them. That is, our choice of abstractions have an enormous impact on our algorithms. In addition, procedural abstraction (both with and without parameters) makes algorithms easier by raising the level of abstraction.
Describe in your own words, with a specific example from Logo, how our choice of abstractions (commands) in this lesson provides us with the ability to solve problems that couldn't be solved with the abstractions (commands) used in Logo Part 1.
Answer
By making logo one more abstract, we are able to choose the lengths and rotations of a side so it is not always a 90-degree turn or set to 10 pixels.