Coding

In class we learned how to Code. We are using the software Swift to learn the basics of code. We have learned multiple concepts such as if else statements, functions, and loops using the app Swift.

img_0548

In swift we learn about the code and then practice it by writing mini codes like this one…

moveForward()
turnLeft()
moveForward()
turnLeft()
for i in 1 … 3 {
if isOnClosedSwitch {
toggleSwitch()

} else if isOnGem {
collectGem()
}
moveForward()

}
turnLeft()

We are able watch our program run through with easy to understand visuals like this one…

img_0550

I began this unit with a little knowledge of coding, but I feel I have furthered my knowledge through the this unit. It has taught me a lot about the structure of coding. I have learned the basics so that if I were to expand and grow my coding abilities this would be a good foundation.

 

Print Friendly, PDF & Email

Leave a Reply

Your email address will not be published. Required fields are marked *