99.9k views
4 votes
Using arithmetic shifting, perform the following:

a)double the value 000101012
b)quadruple the value 011101112
c)divide the value 110010102in half

1 Answer

2 votes

Final answer:

Arithmetic shifting is used to double, quadruple, or divide a value in half by shifting the bits to the left or right. In this case, we double the value 00010101 to 00101010, quadruple the value 01110111 to 11011100, and divide the value 11001010 in half to 11100101.

Step-by-step explanation:

a. To double a value using arithmetic shifting, we perform a left shift operation. This means we shift all the bits of the value to the left by one position, and fill the empty position with a zero. In this case, to double the value 00010101, we shift it left by one position, resulting in 00101010.

b. To quadruple a value using arithmetic shifting, we perform a left shift operation twice. This means we shift all the bits of the value to the left by two positions, and fill the empty positions with zeros. In this case, to quadruple the value 01110111, we shift it left by two positions, resulting in 11011100.

c. To divide a value in half using arithmetic shifting, we perform a right shift operation. This means we shift all the bits of the value to the right by one position, discarding the least significant bit. In this case, to divide the value 11001010 in half, we shift it right by one position, resulting in 11100101.

User Danver Braganza
by
8.2k points