Friday, April 22, 2016
Week 7
Today, I learned how to use a loop. Loops prevent a programmer from having to continuously type the same monotonous string of code. I learned about 2 types of loops: the while loop and for loop. The "for" loop allows me to easily create a simple loop without having to type as much as I would with the "while" loop, but it can't be used in all loop situations. I didn't do many interesting projects with the loop, so I decided not to post any sort of link to my projects.
Friday, April 8, 2016
Bonus!
I had a little extra time today so I decided to make an extra program:
https://www.khanacademy.org/computer-programming/lift-off/3990655655
Press and hold the button to lift off!!!To launch again, press restart.
Week 6
Today, I extended my knowledge of the if statement. I learned how to create code that generated random numbers, and with those numbers I learned how to run a certain line of code that is only ran when a certain number is selected. Using what I learned, I created a digital magic 8 ball. If you would like to view it, click the link below:
https://www.khanacademy.org/computer-programming/spin-off-of-project-magic-8-ball/4263872978
If you would like to foresee your future, just press restart.
Friday, April 1, 2016
Week 5
Today, I learned about operators. Operators allow me to have a specific task perform under multiple conditions. Examples of operators include &, <, <, and !, with the exclamation point meaning not. Using what I learned I created a button that changes color when you press it. Although the button doesn't actually trigger a task when it is pressed (besides changing color) it's still pretty neat:
https://www.khanacademy.org/computer-programming/spin-off-of-challenge-smarter-button/3991455607
Subscribe to:
Posts (Atom)