An if-then-else uses conditions to cause actions.
A variable keeps track of information.
1 - We Do (10 min)
2 - Turn & Talk (5 min)
3 - UCSD Does (5 min)
4 - We Do (15 min)
5 - You Do (20 min)
6 - Reflect & Share (5 min)
(5 min)
What do you notice about if-then-elses (conditionals) in the project?
What do you notice about variables in the project?
(5 min)
(20 min)
(5 min)
What conditions control the if-then-elses in your code?
What variables did you use in your code? What information do they keep track of?
What was your goal today and what code made it work?
What challenge with your code did you overcome today?
Make the wind speed greater than 60 and add more light bulbs!
Scientists study how atoms and molecules interact in simulations because they are too small to see with your eyes.