Difference between revisions of "CSC103: DT's Notes 1"
Line 44: | Line 44: | ||
Assume that I'm interested in buying ice cream for three friends: Edna, Liz, and Frida. Before going to the store I probe my friends for their taste in ice cream. Edna likes anything with chocolate, but doesn't like anything with fruit. She also doesn't like | Assume that I'm interested in buying ice cream for three friends: Edna, Liz, and Frida. Before going to the store I probe my friends for their taste in ice cream. Edna likes anything with chocolate, but doesn't like anything with fruit. She also doesn't like | ||
Haagen Dazs icecream. Liz doesn't like chocolate, and doesn't care about the brand. Frida likes everything. So we can create three boolean variables: | Haagen Dazs icecream. Liz doesn't like chocolate, and doesn't care about the brand. Frida likes everything. So we can create three boolean variables: | ||
− | {| | + | {| border="1" cellpadding="20" cellspacing="0" |
| Variable ''a'' | | Variable ''a'' | ||
| likes chocolate ice cream | | likes chocolate ice cream | ||
Line 57: | Line 57: | ||
And if I assigned these three variables to each of my friends, here is what I get for their value: | And if I assigned these three variables to each of my friends, here is what I get for their value: | ||
− | {| | + | {| border="1" cellpadding="20" cellspacing="0" |
! Variable | ! Variable | ||
! Definition | ! Definition |