On NetLogo we learned how to program using turtles. They look like turtles but
before they were programmed to look like that they were arrows.We programmed these turtle to move
and draw things. They followed every thing we told them to do. From this we learned
that there is three main parts in programming.There are always loops(ex:repeat), variables(words that stand for numbers), and conditions(ex:if statements).

On the left is an outline of a flower that I programmed the turtle to do. On the right, it is the codes that
was given to the turtle. In there, there is a function within
a function. The function "petal" is in "thingy".

This is a star that is made up of 5 lines. In the program there is a loop "Repeat".
What it does is that it makes the code in the brackets be done the amount of times it says, in this case 5.

This was tricky. This program makes any polygon when told the amount of sides.
In the program I used geometry as you can see the numbers and math symbols.
In this program there are loops and variables. "Repeat" is used as a loop and "Numberofsides" as a variable.

This is the divideby3 program. In this program I use the if condition.
If it can be divisible by three it will say it can else it would say that it can't.

Microcolony Simulation

Using the Logo Language and the Net Logo application, I creates a colony of turtles that move, eat, reproduce and die. Yaddy yadyy Yadda... Heres a screenshot of some of the code:

Here's a screenshot of my colony with the plot of the turtle population broken down by color. Notice the pink turtles have dominated the enviroment!


Python is like logo. It uses a turtle and works like logo. The commands on python are worded
different than logo but similar. Like every language it had loops, conditionals, and variables.
However, unlike logo, it doesn't need to end with end.

This is similar to the polygon function that I did with NetLogo. It has a for loop just like the last
one. The program will make any polygon that you want. All that is needed is the length of one
side and the number of sides.

Similar to the star in Netlogo. It as a for loop and it has a right turn of 144 like the other.

In this program, we made it count down from any number put.
Seen in the program, I used an if and else conditional.

This one was very tricky. However, thanks to the teacher, it was simple to do. What this
program did was make stars at the corners of stars repeating after another. However, the
program controls how much it will repeat. In the program, we used an if conditional and a for
loop in it.

This program is made for the user to guess what number
the computer is thinking(if computers can think).

Like the program above, someone has to guess a number, but in here, the computer is trying to
guess. In this program, we used a while loop and a true statement. Also, I used a if conditional
and the "elif" which works as "if else".