16.6k views
5 votes
HELP ME WITH THIS QUESTION PLESE!!​

HELP ME WITH THIS QUESTION PLESE!!​-example-1
User Dragonborn
by
6.6k points

1 Answer

4 votes

Answer:

See below for explanation since answer already provided along with question

Explanation:

When adding binary numbers just add them as you would decimal numbers starting at the rightmost bit.

Note for bit addition

0 + 0 = 0

0 + 1 = 1

1 + 0 = 1

1 + 1 = 0 with a carry of 1 which is added to the next left column

When subtracting bits

0 - 0 = 0
0 - 1 = 1 but requires a carry from the next left column

1 - 0 = 0

1 - 1 = 0

First 11011₂ + 10011₂
Add the right most bits 1 + 1 = 0 with a carry of 1

The next left column has 1 + 1 = 10 + 1 = 11 that means 1 with a carry of 1

The next left column has 0 + 0 = 0; add the carry to get 0 + 1 = 1; no carry

The next left column has 1 + 0 = 1; no carry

The left most column has 1 + 1 = 0 with a carry of 1 which is appended to the left most position

Reading from left to right this would be 1 0 1 1 1 0

(This is the same as adding two 2-digit numbers with a carry. For example, 74 + 82 = 156)

In long addition format:


0 \quad 1 \quad 1 \quad 0 \quad 1 \quad 1\quad +\\0 \quad 1 \quad 0 \quad 0 \quad 1 \quad 1\quad \\---------\\1 \quad 0 \quad 1 \quad 1 \quad 1 \quad 0\quad\\---------\\

The leading zeros above are only for alignment and do not affect the values . Note the addition result has 6 places whereas the items being added have only 5 places

Subtracting 1 1 1 0 1 will give


1 \quad 0 \quad 1 \quad 1 \quad 1 \quad 0 \quad -\\\quad 0 \quad 1 \quad 1 \quad 1 \quad 0 \quad 1\\---------\\\quad 0 \quad 1 \quad 0\quad 0\quad 0\quad 1\\---------\\

Here, starting at the right most column we get 0 - 1 = 1 which requires a carry from the next left column. So the bit in the next left column becomes 1 - 1 = 0 which makes that column 0 - 0 = 0

The next two columns on the left have both 1 so it is just 1 - 1 = 0 in both
In the next to last left column we have 0 - 1, this requires a carry from the left most column so it becomes 0 - 1 with carry = 10 - 1 = 1

Hope that was comprehensible





User Andrea
by
6.4k points