Computer Science, asked by harshalj6495, 2 months ago

4) Add binary numbers (111110)2 and (110101)2
5) Convert the number 1010110 into its decimal values​

Attachments:

Answers

Answered by prithvibhai132
0

Answer:

To add binary numbers (111110)2 and (110101)2:

Step 1: Write the binary numbers side by side, aligning the least significant bits.

111110

110101

Step 2: Start adding the digits from the right-most digit. If the sum of any two digits is 2 or more, carry over the extra digit to the next column.

1 1 1 1 1 0

1 1 0 1 0 1

1 0 0 1 0 1 1

So, the sum of (111110)2 and (110101)2 = (10011011)2

To convert the number (1010110)2 into its decimal value:

Step 1: Start from the right-most digit of the binary number.

Step 2: Multiply each digit by 2^n, where n is the position of the digit.

Step 3: Add up all the values obtained in step 2.

Example:

(1010110)2

= 1 x 2^6 + 0 x 2^5 + 1 x 2^4 + 0 x 2^3 + 1 x 2^2 + 1 x 2^1 + 0 x 2^0

= 64 + 16 + 4 + 2 + 1

= 87

So, the decimal equivalent of (1010110)2 is 87.

Similar questions