Convert the decimal numbers 30 and 30 to binary Assume each

Convert the decimal numbers 30 and -30 to binary. Assume each number is stored in 8 bits.

Covert the binary number %11111010 to decimal assuming the number is signed. Repeat assuming the number is unsigned.

Covert the binary number %00101000 to decimal assuming the number is signed. Repeat assuming the number is unsigned.

Solution

a) The 8-bit binary representation of 30 is 00011110.

b) So, -30 in 2’s complement form is (NOT (00011110) + 1) = (11100001 + 1) = 11100010.

Convert the decimal numbers 30 and -30 to binary. Assume each number is stored in 8 bits. Covert the binary number %11111010 to decimal assuming the number is s

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site