1 / 51

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

katherine
Download Presentation

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition

    2. Invitation to Computer Science, C++ Version, Fourth Edition 2 Objectives In this chapter, you will learn about The binary numbering system Boolean logic and gates Building computer circuits

    3. Invitation to Computer Science, C++ Version, Fourth Edition 3

    4. Learn 3 basic circuit symbols to design simple circuits. http://library.thinkquest.org/10784/circuit_symbols.html Invitation to Computer Science, C++ Version, Fourth Edition 4

    5. You should be able to design this. Invitation to Computer Science, C++ Version, Fourth Edition 5

    6. We will learn binary numbering system. Why does the computer use binary digit (0 and 1)? Homework assignment: Read the book to find out why (Section 4.2.3). Invitation to Computer Science, C++ Version, Fourth Edition 6

    7. Invitation to Computer Science, C++ Version, Fourth Edition 7 How to convert a decimal to a binary number? 510= 1012 710= 1112

    8. Invitation to Computer Science, C++ Version, Fourth Edition 8 Quiz 910= ______2 1110= _____2 1510= _____2

    9. Invitation to Computer Science, C++ Version, Fourth Edition 9 How to convert a binary to a decimal number? 1010 2 = 1010 ans: 1* 23 + 0* 22 + 1 * 21 + 0 * 20 = 8 + 0 + 2 + 0 = 10

    10. Invitation to Computer Science, C++ Version, Fourth Edition 10 1110 2 = 1410 ans: 1* 23 + 1* 22 + 1 * 21 + 0 * 20 = 8 + 4 + 2 + 0 = 14

    11. Invitation to Computer Science, C++ Version, Fourth Edition 11 Quiz 1010 2 = _______________10 10101 2 = ___________10 10111 2 = ___________10

    12. Invitation to Computer Science, C++ Version, Fourth Edition 12 Binary Addition 1 1 0 1 0 1 0 1 + 0 1 1 0 0 0 1 1 ----------------------------

    13. Invitation to Computer Science, C++ Version, Fourth Edition 13 ASCII Table: 8-bit Decimal Octal Hex Binary Value ------- ----- --- ------ ----- 065 101 041 01000001 A 066 102 042 01000010 B 067 103 043 01000011 C 068 104 044 01000100 D 069 105 045 01000101 E 070 106 046 01000110 F 071 107 047 01000111 G 072 110 048 01001000 H 073 111 049 01001001 I What is the binary representation of the character string BAD? 01000010 01000001 01000100

    14. Book Exercises P. 184. Do 3a 3b. 4a. 4b. 7. 9a Invitation to Computer Science, C++ Version, Fourth Edition 14

    15. Invitation to Computer Science, C++ Version, Fourth Edition 15 AND Truth Table T AND T is T T AND F is F F AND F is F F AND T is F _____(T/F) Assume that a=1, b=2, and c=3. The value of the following Boolean expression is TRUE. (a > 1) AND ( b > c)

    16. Invitation to Computer Science, C++ Version, Fourth Edition 16 Quiz _____(T/F) Assume that a=1, b=2, and c=3. The value of the following Boolean expression is TRUE. (a < 1) AND ( b > c) _____(T/F) Assume that a=1, b=2, and c=3. The value of the following Boolean expression is TRUE. (a > 1) AND ( b < c)

    17. Invitation to Computer Science, C++ Version, Fourth Edition 17 Circuit Symbol AND gate. If A is True and B is False, then what is output? ________

More Related