0% found this document useful (0 votes)
13 views

Computer Prog.

script

Uploaded by

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

Computer Prog.

script

Uploaded by

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

: Good day everyone and let’s begin!

: We will discuss about Binary Operation Types.


: There are four types of Binary Operation.
: BINARY ADDITION, SUBTRACTION, MULTIPLICATION, AND DIVISION

: First, we will discuss Binary Addition, Binary addition is the simplest method to add any of the binary
numbers. It can be calculated easily if we know the following rules.
:0+0=0 :1+0=1
:0+1=1 : 1 + 1 = 10
: SO, HERE’S THE EXAMPLE NUMBER 1
: Let us take 10010 + 01010
0+0=0 1 + 0 = 1 and 1 + 0 = 1
1 + 1 = 0 carry 1 0+1=1
Then 1 + 0 = 1
: Therefore, the binary 10010 + 01010 = 11100.

: EXAMPLE NUMBER 2.
: let us take 11011 + 10110
1+0=1 1 + 1 = 0 carry 1
1 + 1 = 0 carry 1 and 0 + 0 = 0
then 1 + 1 = 0 carry 1 then 1 + 1 = 0 carry 1
and 0 + 1 = 1 and bring down 1.
: Therefore, the binary 11011 + 10110 = 110001.
: That’s all for the binary addition. Don’t forget the following rules to solve easily.

: Let’s move to the Binary Subtraction,


: So, Binary Subtraction is also the simplest method to subtract any of the binary numbers. It can be calculated
easily if we know the following rules.
:0–0=0 :1–0=1
: 0 – 1 = 1 (with a borrow of 1) :1–1=0
: EXAMPLE NUMBER 1.
: let us take 11011 – 10010
1–0=1 0–0=0 1–1=0
1–1=0 1–0=1
: Therefore, the binary 11011 – 10010 = 01001 or 1001
: EXAMPLE NUMBER 2
: let’s take 110110 – 010011
0 – 1 = cannot be, so we need to borrow the next number which is 1. And 1 becomes 0 and 0 becomes 2, so
we can subtract them. So, 2 – 1 = 1
Then, 0 – 1 = cannot be, so we need to borrow the next number which is 1. And 1 becomes 0 and 0 becomes 2,
so we can subtract them. So, 2 – 1 = 1
0 – 0 = 0 and 0 – 0 = 0
Then, 1 – 1 = 0 and 1 – 0 = 1
: Therefore, 110110 – 010011 = 100011.
: That’s all for the binary subtraction. Don’t forget the following rules to solve easily.

: Let’s proceed to the Binary Multiplication


: Binary Multiplication is much easier, unlike the decimal multiplication when you remember the following
multiplication rules. The rules of binary multiplication are:
0x0=0 1x0=0
0x1=0 1x1=1
EXAMPLE 1: Solve 1010 x 10
0 times in binary number will only result as 0. Next, 1 x 0 = 0 and 1 times 1 = 1,
1 x 0 = 0 and 1 times 1 = 1. And apply the addition. So, bringdown 0. 0 plus 0 = 0. 0 plus 1 = 1. 0 plus 0 = 0 and
bringdown 1.
: Therefore, the product of binary 1010 multiply by 10 is 10100.

EXAMPLE 2: Solve 100 x 110


0 times in binary number will only result as 0. Next, 1 x 0 = 0 and 1 x 0 = 0 then 1 x 1 = 1
Next, 1 x 0 = 0 and 1 x 0 = 0 then 1 x 1 = 1. So, apply the addition, bringdown 0. 0 + 0 = 0
0 + 0 + 0 = 0, 1 + 0 = 1, and bringdown 1.
: Therefore, the product of 100 multiply by 110 is 11000.
: That’s all for the binary multiplication. Don’t forget the following rules to solve easily.

: let’s move to the last binary arithmetic, BINARY DIVISION


: Binary Division is a mathematical operation that involves dividing two binary numbers, which are numbers
composed of only 0's and 1's. These are the following rules:
DVD=>DVR=1
EXAMPLE NUMBER 1:
101/10, DVD 10 is divide to the DVR 10 so the quotient is 1
And, 1 times 0 = 0, 1 times 1 = 1
Then, 10 – 10 = 00
Then, bringdown 0
And we observed that DVD 10 is greater than to the DVR 0 so this is 0
Then, 0 times 0 equals 0 and 0 times 1 equals 0
Then we must subtract this, 0 minus 0 is 0 and bring down zeros.
Therefore, the binary of 101 divide by 10 is 10.
THAT’S ALL FOR THE BINARY DIVISION.

NOTE:
DON’T FORGET THE
FOLLOWING RULES
TO SOLVE EASILY.

You might also like