LOGO

Smiley face

This my rainbow star spiral that I made using scratch.

Smiley face

This is the code that I used to create the spiral. We used functions to
organize our code. As you can see we made a function called star. Functions can help you
shorten your code so that you don't have to keep writing the same code over and over again. This is the same thing that the repeat bracket did in my code.

Math Functions

On Thursday we learned how to use LOGO to solve arithmetic. This can be useful because it can save you time and it will let you think about harder things.

Smiley face

Above is the code that we used in class to solve some arithmetic.

Here is the output of this code:

Smiley face

Above is the output of this code.

Nested Triangle

Smiley face

On Thursday we used net logo to make a nested triangle. A nested triangle is a bunch of
congruent triangles inside of a big triangle.

Smiley face

Above is the code that we used to make the nested triangle. What the code is basically
doing is that it is telling the turtle to make a nested triangle that is half the size
of the variable size1 after it has made the previous triangle. All of this is in a loop
which means that it repeats this as many times as you want. It also uses a conditional
that says that if size one gets smaller than ten stop.

Smiley face

After writing the command "nestedtriangle 180" as a turtle I get the beautiful triangle above.