Logic & Boolean = sweet!
After a quick review of if/then/else logic statements, we tried to visually represent Boolean operators using Venn diagrams. Using the whiteboard, we drew the relationship between snowboarders and skiiers in the class. We learned that:
- 14 students ski
- 4 students snowboard
- 1 student doesn’t ski or snowboard
Using Boolean operators, we examined our data and found that:
- 11 students ski NOT snowboard
- 2 students snowboard NOT ski
- 2 students ski AND snowboard
- 1 student NOT ski
- 1 student NOT snowboard
- 1 student NOT ski NOT snowboard
Once our group application of the Boolean operators was complete, students began individual assignments adding AND/OR/NOT into Scratch and combining them with the logic statements they had already created.
Comments are closed.
