A Precursor to Representation We will examine this concept in much greater detail in the Representation module, but for now we will rely on our intuitions. Although each bit (in this case, each condition) represents a dichotomy between two possible choices, they can be chained together to represent more. Let's look at how we might "chain" if / else blocks together to represent the questions/answers
Question: How is 'Purple Stuff' matched if it is never explicitly checked for? How many times is answer checked in each of the following cases? - NO - YES, Soda - YES, OJ - YES, Water - YES, Purple Stuff How could the program be modified to check the answers to ensure that they are valid. In other words, if someone answers "Sunny D" or "Milk" to "What would you like to drink?", the response would be "Sorry, we don't have that."