0% found this document useful (0 votes)
14 views25 pages

Data Representation 3

Here are 3 things I learned, 2 questions I have, and 1 thing for the teacher: 3 things I learned: 1. How to add and subtract binary numbers by applying the rules of binary addition and subtraction. 2. How to convert decimal numbers to binary using both one's and two's complement. 3. How negative binary numbers are represented using two's complement. 2 things I have questions about: 1. More practice on converting larger decimal numbers to binary using two's complement. 2. Additional examples of adding and subtracting positive and negative binary numbers. 1 thing for the teacher: Thank you for the clear explanation and examples of binary addition, subtraction, and number representation.

Uploaded by

gemmaepitong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views25 pages

Data Representation 3

Here are 3 things I learned, 2 questions I have, and 1 thing for the teacher: 3 things I learned: 1. How to add and subtract binary numbers by applying the rules of binary addition and subtraction. 2. How to convert decimal numbers to binary using both one's and two's complement. 3. How negative binary numbers are represented using two's complement. 2 things I have questions about: 1. More practice on converting larger decimal numbers to binary using two's complement. 2. Additional examples of adding and subtracting positive and negative binary numbers. 1 thing for the teacher: Thank you for the clear explanation and examples of binary addition, subtraction, and number representation.

Uploaded by

gemmaepitong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 25

Add binary numbers

Simple addition in decimal


100s 10s 1s
Number 1 2 6 2
Number 2 1 7 4
Carry 1
SUM 4 3 6

LO1: Add positive binary numbers. Answer: 436 1


Add binary numbers

Adding in Binary Rules Sample Problem1: 0011 + 1011

Rule 1: 0+0 = 0 8 4 2 1
Number 1 0 0 1 1
Rule 2: 0+1 = 1
Number 2 1 0 1 1
Rule 3: 1+1 = 10 Carry 1 1
Rule 4: 1+1+1 = 11 SUM 1 1 1 0

LO1: Add positive binary numbers. Answer: 1110 2


Add binary numbers

Adding in Binary Rules Sample Problem 2: 1001 + 110

Rule 1: 0+0 = 0 8 4 2 1
Number 1 1 0 0 1
Rule 2: 0+1 = 1
Number 2 1 1 0
Rule 3: 1+1 = 10 Carry
Rule 4: 1+1+1 = 11 SUM

LO1: Add positive binary numbers. Answer: 3


One’s complement

Each digit in the binary number is inverted (1 becomes 0 and


0 becomes 1)

Example: Find the one’s complement of 01110010.

LO2: Find the one’s complement and two’s complement of a 4


number.
Two’s complement

• Each digit in the binary number is inverted (1 becomes 0 and


0 becomes 1) and a ‘1’ is added to the right-most bit.
• Use to convert a number into its negative equivalent.
• Uses the weightings for an 8-bit number representation:

-128 64 32 16 8 4 2 1

LO2: Find the one’s complement and two’s complement of a 5


number.
Two’s complement

Example: Find the two’s complement of 01110010.

LO2: Find the one’s complement and two’s complement of a 6


number.
Find the two’s complement of -104.

7
8
Activity 1C – page 4

9
Activity1C – page 4

Convert these denary numbers into 8-bit binary numbers


using two’s complement where necessary.
a. +114
b. +61
c. +96
d. -14
e. -116

10
Pair with your
seatmates, then
discuss your
answers.(3mins)
11
Random students
will be called to
present their
answers. (2mins)
12
Binary Addition

Example 1.1 : 37 (denary) + 58 (denary)

LO3: Add and subtractive positive and negative binary numbers.13


Binary Addition

Example 1.2 : 82 (denary) + 69 (denary)

LO3: Add and subtractive positive and negative binary numbers.14


Binary Addition

Challenge: 65 (denary) + -125 (denary)

LO3: Add and subtractive positive and negative binary numbers.15


Binary Addition – Sample questions from PQP

LO3: Add and subtractive positive and negative binary numbers.16


Binary Subtraction

Example 1.3 : 95 (denary) - 68 (denary)

LO3: Add and subtractive positive and negative binary numbers.17


Binary Subtraction

Example 1.4 : 49 (denary) - 80 (denary)

LO3: Add and subtractive positive and negative binary numbers.18


Binary Subtraction – Sample questions from PQP

LO3: Add and subtractive positive and negative binary numbers.19


Activity 1D – page 6

20
Activity1D – page 6

Carry out these binary additions and subtractions.


a. 00111001 + 00101001
b. 01001011 + 00100011
c. 01011000 + 00101000
d. 01110011 + 00111110
e. 00001111 – 00011100
f. 01100011 - 00110000

21
Pair with your
seatmates, then
discuss your
answers.(3mins)
22
Random students
will be called to
present their
answers. (2mins)
23
3-2-1
3 things you learned
2 things you have a question about
1 thing you want the teacher to know

You might also like