Programming

Today what we learned in class is the 4 most basic rule of programming they are below

Loops

Loops are used to repeat something.

Conditionals

Conditionals are if statement.

Functions

Functions help you organise your code you will see that in the code on this page.

Variables

You use variables when you want to change the value of a number.
Here is what I learned today in class.How to make a star you sing codes and other shapes like the one below.

Today we leaned to teach a computer to do math.

Above are the codes to teach the computer.

This is the answers to the problems that the computer gave.
Today we learned to make a tree.

Also we learned to teach the computer how to find the sum of numbers this is the coded to do that.

Python

On Wednesday of week 2 we learned how to teach the computer to convert binary numbers to decimals. We couldn't finish the binary code but the decimal code did work below is the code.

The answer that we got from the computer.

Net logo

On Thursday of week 2 we never complex triangle on net logo below are the images of the code and triangle.

What is in this code are loops and function are the ones that I can find in this.

Above is the end result.Also we had to set y and x to -10 -10 and the heading to 30 to get the triangle in the right direction.

Home