SlideShare a Scribd company logo
IT2001PA
Engineering Essentials (2/2)


Chapter 2 – Arithmetic Operation

 Lecturer Name
lecturer_email@ite.edu.sg
                               Nov 20, 2012
Contact Number
Chapter 2 – Arithmetic Operation


Lesson Objectives
Upon completion of this topic, you should be able to:
   Compute addition and subtraction arithmetic operation
    for the binary and hexadecimal number systems.




    IT2001PA Engineering Essentials (2/2)           2
Chapter 2 – Arithmetic Operation


Specific Objectives
  Students should be able to :
      Perform addition, subtraction using the binary and hexadecimal
       number systems.
      Explain the use of :
          1’s complement of a binary number and
          2’s complement of a binary number.
      Explain the following terms :
          Bit
          Nibble
          Byte and
          Word.




      IT2001PA Engineering Essentials (2/2)
Chapter 2 – Arithmetic Operation


 Binary addition
                                   Add 0112 and 1102
                                              011           (3)
                                       +      110           (6)
                                              (1)       carry

                                              1001          (9)
                       Add 10010.012 and 111.102
                                   10010.01                 (18.25)
                           +            111.10              ( 7.50)
                                    (1) (1)         carry
                                   11001.11                 (25.75)


    IT2001PA Engineering Essentials (2/2)                             4
Chapter 2 – Arithmetic Operation


  Binary Subtraction
    Subtract 1112 from 11002
   borrow    (2) (1) (2)

            1 1 0 0 (12)
       -      1 1 1 ( 7)
              1 0 1 ( 5)
    Binary Subtraction of 10000.012 - 111.102
             (1) (1) (1) (1) (2)
  borrow
            10000.01               (16.25)
       -         111.10            ( 7.50)
              1000.11              ( 8.75)



    IT2001PA Engineering Essentials (2/2)       5
Chapter 2 – Arithmetic Operation


Multiplication of Binary Numbers
                                     1 0 0 12                  ( 9)
                           x         1 0 1 12                  (11)
                                     1001
                                1001
                           0000
                    +1 0 0 1
                           (1) (1)
                                         carry

                      1100011                                  (99)
                    ( 64 32 0 0 0         2 1       binary )
                       6    5              1    0
                     22                  22
    IT2001PA Engineering Essentials (2/2)                             6
Chapter 2 – Arithmetic Operation

    Binary division

                       10012 ÷ 112              (9 ÷ 3 = 3)
                                   0011
                                     (1) (2)   borrow

                          11       1001
                                   011
                                   0011
                                   0011
                                   0000


    IT2001PA Engineering Essentials (2/2)                     7
Chapter 2 – Arithmetic Operation


    1’s complement

    Bit by Bit inversion of a binary number.

                    Given:                  110101112

    Result of 1’s complement is 0 0 1 0 1 0 0 0 2




    IT2001PA Engineering Essentials (2/2)               8
Chapter 2 – Arithmetic Operation


    2’s complement

    Result of 1’s complement plus 1.

                    Given:                  110101112

    Result of 1’s complement is 0 0 1 0 1 0 0 0 2
                                        +          12
    Result of 2’s complement is 0 0 1 0 1 0 0 1 2


    IT2001PA Engineering Essentials (2/2)               9
Chapter 2 – Arithmetic Operation


   Why use 2’s complement
         In computers, the operations of
         subtraction can be performed using
         only the addition operation with the
         2’s complement method.




    IT2001PA Engineering Essentials (2/2)       10
Chapter 2 – Arithmetic Operation


Why 2’s complement is popular
      This method is popular because
       only adder circuits are needed
           thus simplifying the circuitry.
      Easy with digital circuits to get the
      complements.




    IT2001PA Engineering Essentials (2/2)     11
Chapter 2 – Arithmetic Operation


Binary System
       Each digit in the binary number system is called a
        bit

       A group of four bits binary number is known as
        Nibble.

       A group of eight bits binary number is known as
        Byte.

       Two bytes number form a word.


    IT2001PA Engineering Essentials (2/2)               12
Chapter 2 – Arithmetic Operation


    Bit
           A binary digit, e.g.: 0 or 1

    Nibble
           A group of 4 bits, e.g.: 1010

    Byte
           A group of 8 bits, e.g.: 1001 1011

    Word
      A group of 16 bits, e.g.: 1011 1010 1100 1001
    IT2001PA Engineering Essentials (2/2)        13
Chapter 2 – Arithmetic Operation


Next Lesson




    IT2001PA Engineering Essentials (2/2)   14

More Related Content

What's hot

Number systems tutorial
Number systems tutorialNumber systems tutorial
Number systems tutorial
Jaspinder Singh Sidhu
 
Binary Numbers
Binary NumbersBinary Numbers
Binary Numbers
ikjsamuel
 
Number systems presentation
Number systems presentationNumber systems presentation
Number systems presentation
Jiian Francisco
 
Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2
MikeCrea
 
Lecture 7: DHT and P2P Games
Lecture 7: DHT and P2P GamesLecture 7: DHT and P2P Games
Lecture 7: DHT and P2P Games
Wei Tsang Ooi
 
Vc term paper-jothi1
Vc term paper-jothi1Vc term paper-jothi1
Vc term paper-jothi1
Pankaj Yadav
 
Number systems
Number systemsNumber systems
Number systems
rajanbatra1
 
Binary reference guide csit vn1202
Binary reference guide csit vn1202Binary reference guide csit vn1202
Binary reference guide csit vn1202
jrwalker2012
 
Lecture4 binary-numbers-logic-operations
Lecture4  binary-numbers-logic-operationsLecture4  binary-numbers-logic-operations
Lecture4 binary-numbers-logic-operations
markme18
 
Reliable multimedia transmission under noisy condition
Reliable multimedia transmission under noisy conditionReliable multimedia transmission under noisy condition
Reliable multimedia transmission under noisy condition
Shahrukh Ali Khan
 
Binary Mathematics Classwork and Hw
Binary Mathematics Classwork and HwBinary Mathematics Classwork and Hw
Binary Mathematics Classwork and Hw
Joji Thompson
 

What's hot (11)

Number systems tutorial
Number systems tutorialNumber systems tutorial
Number systems tutorial
 
Binary Numbers
Binary NumbersBinary Numbers
Binary Numbers
 
Number systems presentation
Number systems presentationNumber systems presentation
Number systems presentation
 
Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2Introduction to Information Technology Lecture 2
Introduction to Information Technology Lecture 2
 
Lecture 7: DHT and P2P Games
Lecture 7: DHT and P2P GamesLecture 7: DHT and P2P Games
Lecture 7: DHT and P2P Games
 
Vc term paper-jothi1
Vc term paper-jothi1Vc term paper-jothi1
Vc term paper-jothi1
 
Number systems
Number systemsNumber systems
Number systems
 
Binary reference guide csit vn1202
Binary reference guide csit vn1202Binary reference guide csit vn1202
Binary reference guide csit vn1202
 
Lecture4 binary-numbers-logic-operations
Lecture4  binary-numbers-logic-operationsLecture4  binary-numbers-logic-operations
Lecture4 binary-numbers-logic-operations
 
Reliable multimedia transmission under noisy condition
Reliable multimedia transmission under noisy conditionReliable multimedia transmission under noisy condition
Reliable multimedia transmission under noisy condition
 
Binary Mathematics Classwork and Hw
Binary Mathematics Classwork and HwBinary Mathematics Classwork and Hw
Binary Mathematics Classwork and Hw
 

Similar to Ee2 chapter2 arithmetic_operation

Topic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering systemTopic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering system
Bai Haqi
 
digital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptxdigital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptx
RameshK531901
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
amudhak10
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
amudhak10
 
digital-electronics.pptx
digital-electronics.pptxdigital-electronics.pptx
digital-electronics.pptx
sulekhasaxena2
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxchapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
Surendra Loya
 
DIGITAL ELECTRONICS.pptx
DIGITAL ELECTRONICS.pptxDIGITAL ELECTRONICS.pptx
DIGITAL ELECTRONICS.pptx
KSatyanarayanaRaju
 
L12-FloatingPoint.ppt
L12-FloatingPoint.pptL12-FloatingPoint.ppt
L12-FloatingPoint.ppt
Devcond
 
L2 number
L2 numberL2 number
L2 number
mondalakash2012
 
Ee2 chapter13 counters
Ee2 chapter13 countersEe2 chapter13 counters
Ee2 chapter13 counters
CK Yang
 
Version 1 Division.pptx
Version 1 Division.pptxVersion 1 Division.pptx
Version 1 Division.pptx
KarthikeyanC53
 
Data representation
Data representationData representation
Data representation
Chew Hoong
 
Chapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersChapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbers
Mohammad Bashartullah
 
BITS,BINARY AND LOGIC
BITS,BINARY AND LOGICBITS,BINARY AND LOGIC
BITS,BINARY AND LOGIC
Muhamad Asnawi
 
bit bin
bit binbit bin
ADE UNIT-III (Digital Fundamentals).pptx
ADE UNIT-III (Digital Fundamentals).pptxADE UNIT-III (Digital Fundamentals).pptx
ADE UNIT-III (Digital Fundamentals).pptx
KUMARS641064
 
Digital Logic & Design
Digital Logic & DesignDigital Logic & Design
Digital Logic & Design
Rokonuzzaman Rony
 
Module I - Digital Systems & Logic Gates.ppt
Module I - Digital Systems & Logic Gates.pptModule I - Digital Systems & Logic Gates.ppt
Module I - Digital Systems & Logic Gates.ppt
AbhiRamPB2
 
unit-i-number-systems.pdf
unit-i-number-systems.pdfunit-i-number-systems.pdf
unit-i-number-systems.pdf
RameshK531901
 
Bolum1cozumler
Bolum1cozumlerBolum1cozumler
Bolum1cozumler
bhuvanaaswini
 

Similar to Ee2 chapter2 arithmetic_operation (20)

Topic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering systemTopic 1 Digital Technique Numbering system
Topic 1 Digital Technique Numbering system
 
digital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptxdigital-systems-and-binary-numbers1.pptx
digital-systems-and-binary-numbers1.pptx
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
UNIT - I.pptx
UNIT - I.pptxUNIT - I.pptx
UNIT - I.pptx
 
digital-electronics.pptx
digital-electronics.pptxdigital-electronics.pptx
digital-electronics.pptx
 
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptxchapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
chapter1digitalsystemsandbinarynumbers-151021072016-lva1-app6891.pptx
 
DIGITAL ELECTRONICS.pptx
DIGITAL ELECTRONICS.pptxDIGITAL ELECTRONICS.pptx
DIGITAL ELECTRONICS.pptx
 
L12-FloatingPoint.ppt
L12-FloatingPoint.pptL12-FloatingPoint.ppt
L12-FloatingPoint.ppt
 
L2 number
L2 numberL2 number
L2 number
 
Ee2 chapter13 counters
Ee2 chapter13 countersEe2 chapter13 counters
Ee2 chapter13 counters
 
Version 1 Division.pptx
Version 1 Division.pptxVersion 1 Division.pptx
Version 1 Division.pptx
 
Data representation
Data representationData representation
Data representation
 
Chapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbersChapter 1 digital systems and binary numbers
Chapter 1 digital systems and binary numbers
 
BITS,BINARY AND LOGIC
BITS,BINARY AND LOGICBITS,BINARY AND LOGIC
BITS,BINARY AND LOGIC
 
bit bin
bit binbit bin
bit bin
 
ADE UNIT-III (Digital Fundamentals).pptx
ADE UNIT-III (Digital Fundamentals).pptxADE UNIT-III (Digital Fundamentals).pptx
ADE UNIT-III (Digital Fundamentals).pptx
 
Digital Logic & Design
Digital Logic & DesignDigital Logic & Design
Digital Logic & Design
 
Module I - Digital Systems & Logic Gates.ppt
Module I - Digital Systems & Logic Gates.pptModule I - Digital Systems & Logic Gates.ppt
Module I - Digital Systems & Logic Gates.ppt
 
unit-i-number-systems.pdf
unit-i-number-systems.pdfunit-i-number-systems.pdf
unit-i-number-systems.pdf
 
Bolum1cozumler
Bolum1cozumlerBolum1cozumler
Bolum1cozumler
 

More from CK Yang

Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class test
CK Yang
 
Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websites
CK Yang
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote site
CK Yang
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contents
CK Yang
 
Web topic 30 ensure web contents meet
Web topic 30   ensure web contents meetWeb topic 30   ensure web contents meet
Web topic 30 ensure web contents meet
CK Yang
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
CK Yang
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
CK Yang
 
Web topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesWeb topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelines
CK Yang
 
Web topic 26 browser compatibilty and security
Web topic 26  browser compatibilty and securityWeb topic 26  browser compatibilty and security
Web topic 26 browser compatibilty and security
CK Yang
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized website
CK Yang
 
Web topic 24 usage of web browser
Web topic 24  usage of web browserWeb topic 24  usage of web browser
Web topic 24 usage of web browser
CK Yang
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibility
CK Yang
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web forms
CK Yang
 
Web topic 21 pass info via javascript
Web topic 21  pass info via javascriptWeb topic 21  pass info via javascript
Web topic 21 pass info via javascript
CK Yang
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
CK Yang
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
CK Yang
 
Web topic 18 conflict resolution in css
Web topic 18  conflict resolution in cssWeb topic 18  conflict resolution in css
Web topic 18 conflict resolution in css
CK Yang
 
Web topic 17 font family in css
Web topic 17  font family in cssWeb topic 17  font family in css
Web topic 17 font family in css
CK Yang
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflow
CK Yang
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layout
CK Yang
 

More from CK Yang (20)

Web topic 27 class test
Web topic 27  class testWeb topic 27  class test
Web topic 27 class test
 
Web topic 33 publish websites
Web topic 33  publish websitesWeb topic 33  publish websites
Web topic 33 publish websites
 
Web topic 31 setup remote site
Web topic 31  setup remote siteWeb topic 31  setup remote site
Web topic 31 setup remote site
 
Web topic 32 validate web contents
Web topic 32  validate web contentsWeb topic 32  validate web contents
Web topic 32 validate web contents
 
Web topic 30 ensure web contents meet
Web topic 30   ensure web contents meetWeb topic 30   ensure web contents meet
Web topic 30 ensure web contents meet
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
 
Web topic 29 w3 c page validation
Web topic 29  w3 c page validationWeb topic 29  w3 c page validation
Web topic 29 w3 c page validation
 
Web topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelinesWeb topic 28. w3 c standards and guidelines
Web topic 28. w3 c standards and guidelines
 
Web topic 26 browser compatibilty and security
Web topic 26  browser compatibilty and securityWeb topic 26  browser compatibilty and security
Web topic 26 browser compatibilty and security
 
Web topic 25 mobile optimized website
Web topic 25  mobile optimized websiteWeb topic 25  mobile optimized website
Web topic 25 mobile optimized website
 
Web topic 24 usage of web browser
Web topic 24  usage of web browserWeb topic 24  usage of web browser
Web topic 24 usage of web browser
 
Web topic 23 web accessibility
Web topic 23  web accessibilityWeb topic 23  web accessibility
Web topic 23 web accessibility
 
Web topic 22 validation on web forms
Web topic 22  validation on web formsWeb topic 22  validation on web forms
Web topic 22 validation on web forms
 
Web topic 21 pass info via javascript
Web topic 21  pass info via javascriptWeb topic 21  pass info via javascript
Web topic 21 pass info via javascript
 
Web topic 20 2 html forms
Web topic 20 2  html formsWeb topic 20 2  html forms
Web topic 20 2 html forms
 
Web topic 20 1 html forms
Web topic 20 1  html formsWeb topic 20 1  html forms
Web topic 20 1 html forms
 
Web topic 18 conflict resolution in css
Web topic 18  conflict resolution in cssWeb topic 18  conflict resolution in css
Web topic 18 conflict resolution in css
 
Web topic 17 font family in css
Web topic 17  font family in cssWeb topic 17  font family in css
Web topic 17 font family in css
 
Web topic 16 css workflow
Web topic 16  css workflowWeb topic 16  css workflow
Web topic 16 css workflow
 
Web topic 15 2 basic css layout
Web topic 15 2  basic css layoutWeb topic 15 2  basic css layout
Web topic 15 2 basic css layout
 

Ee2 chapter2 arithmetic_operation

  • 1. IT2001PA Engineering Essentials (2/2) Chapter 2 – Arithmetic Operation Lecturer Name lecturer_email@ite.edu.sg Nov 20, 2012 Contact Number
  • 2. Chapter 2 – Arithmetic Operation Lesson Objectives Upon completion of this topic, you should be able to:  Compute addition and subtraction arithmetic operation for the binary and hexadecimal number systems. IT2001PA Engineering Essentials (2/2) 2
  • 3. Chapter 2 – Arithmetic Operation Specific Objectives Students should be able to :  Perform addition, subtraction using the binary and hexadecimal number systems.  Explain the use of :  1’s complement of a binary number and  2’s complement of a binary number.  Explain the following terms :  Bit  Nibble  Byte and  Word. IT2001PA Engineering Essentials (2/2)
  • 4. Chapter 2 – Arithmetic Operation Binary addition Add 0112 and 1102 011 (3) + 110 (6) (1) carry 1001 (9) Add 10010.012 and 111.102 10010.01 (18.25) + 111.10 ( 7.50) (1) (1) carry 11001.11 (25.75) IT2001PA Engineering Essentials (2/2) 4
  • 5. Chapter 2 – Arithmetic Operation Binary Subtraction Subtract 1112 from 11002 borrow (2) (1) (2) 1 1 0 0 (12) - 1 1 1 ( 7) 1 0 1 ( 5) Binary Subtraction of 10000.012 - 111.102 (1) (1) (1) (1) (2) borrow 10000.01 (16.25) - 111.10 ( 7.50) 1000.11 ( 8.75) IT2001PA Engineering Essentials (2/2) 5
  • 6. Chapter 2 – Arithmetic Operation Multiplication of Binary Numbers 1 0 0 12 ( 9) x 1 0 1 12 (11) 1001 1001 0000 +1 0 0 1 (1) (1) carry 1100011 (99) ( 64 32 0 0 0 2 1 binary ) 6 5 1 0 22 22 IT2001PA Engineering Essentials (2/2) 6
  • 7. Chapter 2 – Arithmetic Operation Binary division 10012 ÷ 112 (9 ÷ 3 = 3) 0011 (1) (2) borrow 11 1001 011 0011 0011 0000 IT2001PA Engineering Essentials (2/2) 7
  • 8. Chapter 2 – Arithmetic Operation 1’s complement Bit by Bit inversion of a binary number. Given: 110101112 Result of 1’s complement is 0 0 1 0 1 0 0 0 2 IT2001PA Engineering Essentials (2/2) 8
  • 9. Chapter 2 – Arithmetic Operation 2’s complement Result of 1’s complement plus 1. Given: 110101112 Result of 1’s complement is 0 0 1 0 1 0 0 0 2 + 12 Result of 2’s complement is 0 0 1 0 1 0 0 1 2 IT2001PA Engineering Essentials (2/2) 9
  • 10. Chapter 2 – Arithmetic Operation Why use 2’s complement In computers, the operations of subtraction can be performed using only the addition operation with the 2’s complement method. IT2001PA Engineering Essentials (2/2) 10
  • 11. Chapter 2 – Arithmetic Operation Why 2’s complement is popular This method is popular because  only adder circuits are needed  thus simplifying the circuitry. Easy with digital circuits to get the complements. IT2001PA Engineering Essentials (2/2) 11
  • 12. Chapter 2 – Arithmetic Operation Binary System  Each digit in the binary number system is called a bit  A group of four bits binary number is known as Nibble.  A group of eight bits binary number is known as Byte.  Two bytes number form a word. IT2001PA Engineering Essentials (2/2) 12
  • 13. Chapter 2 – Arithmetic Operation Bit A binary digit, e.g.: 0 or 1 Nibble A group of 4 bits, e.g.: 1010 Byte A group of 8 bits, e.g.: 1001 1011 Word A group of 16 bits, e.g.: 1011 1010 1100 1001 IT2001PA Engineering Essentials (2/2) 13
  • 14. Chapter 2 – Arithmetic Operation Next Lesson IT2001PA Engineering Essentials (2/2) 14