Boolean Expression Experiments
On this page,
you will match Boolean expressions with the pictures they help create.
Read this script carefully, discuss it with your partner, and make sure you understand why it produces this picture on the stage:
Changing the Boolean expression in the
if
block changes the picture. Discuss why the expression
generates this picture:
AAP-2.E part b, AAP.-2.C
Match the Boolean expressions with the pictures. There are more expressions than pictures.
Compare answers with another pair and resolve any disagreements.
On paper, sketch the pictures for the expressions you didn't match with pictures in the previous problem (without using Snap
!
).
AAP-2.F part a
Invent Boolean expressions you can plug into the dot-picture script to generate these pictures: