Logic Scenarios Logic Word Problems Logic Problems Digital
Logic Scenarios
Logic Word Problems • Logic Problems • Digital Signals • Logic Gates
Logic Problem 1 If I am hungry and it is 5: 00 p. m. , then I will eat dinner. What must happen in order to eat dinner? What might happen to prevent eating dinner? Possible Inputs (conditions) I am hungry. (T or F) It is 5: 00 p. m. (T or F) F T F F T T Output I will eat dinner (T or F) F F F T
Logic Problem 2 If I pedal harder or go downhill, then my bike will go faster. What must happen in order to make the bike go faster? What might happen to prevent the bike from going faster? Possible Inputs (conditions) Output I am pedaling faster. (T or F) I am going downhill. (T or F) My bike will go faster. (T or F) F T F F T T T
Logic Problem 3 If it is windy and cold, then I am not going to walk home. What must happen in order to go for a walk? What might happen to prevent going for a walk? Possible Inputs (conditions) Output It is windy. (T or F) It is cold. (T or F) I am walking home. (T or F) F T F F T T T F
Logic Problem 4 If my battery is dead or I forget headphones, then I will not listen to my music. What must happen in order to listen to music? What might happen to prevent listening to music? Possible Inputs (conditions) Output My battery is dead. (T or F) I forget headphones. (T or F) I can listen to music. (T or F) F T F F T T T F F F
Logic Problem 5 I only have enough money for one of my two friends to go to dinner. If either one (but not both) want to go to dinner, we’ll go to dinner. What must happen in order for two people to go to dinner? What might happen to prevent two people to go to dinner? Possible Inputs (conditions) First friend wants to go to dinner (T or F) F T Output Second friend wants We will go out to dinner. to go to dinner (T or F) F F T T F
Digital Signals Digital signals 0 (false) or 1 (true) Digital signal 1 is represented by a small voltage. Digital signals 0 is represented by no voltage. Digital Waveforms 1 (3 V) 1 0 0 1 0 (0 V) Each column represents a small amount of time 1 0
Logic Gates An electronic system that performs a logical operation on an input signal Gates process digital inputs to produce digital outputs. How do computer processors make decisions? How do they do math? Display images? Etc. ? LOGIC
Image Resources Microsoft, Inc. (2009). Clip Art. Retrieved February 19, 2008, from http: //office. microsoft. com/en-us/clipart/default. aspx
- Slides: 10