Monday, March 4, 2013

If statements, Inertia

Hi!
Today I learned if statements in Karel.  If statements are thing like if you have the ball move two times. Or else if you don't have the ball turn left. This is what an if statement and looks like:


if (haveBall) {
    move();
    move();
}
else{
    turnLeft();
}

I learned science on How Things Work. I learned that a thing that is still stays still unless you push it. It is called Inertia. If you put some stuff on the table with a cloth on the table and you put the cloth off the things will stay in the same spot they have always been.

I did spelling on page 64 in Why Johnny Can't Read.

No comments:

Post a Comment