Question

In: Computer Science

10. Convert 101 1010 (seven bits) into a signed decimal (show work) 15. Give the value...

10. Convert 101 1010 (seven bits) into a signed decimal (show work)

15. Give the value of 011 1101 and C=0 with ROL (seven bits, show work)

16. Give the signed decimal value of 93A (12 bits, show work)

18. Give the binary equivalent of the decimal number of 13.57 (assume fixed point, no more than 6 bits left and right of the decimal point)

Solutions

Expert Solution

10)
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   1011010 is flipped to 0100101
II. Add 1 to above result
0100101 + 1 = 0100110
III. Now convert this result to decimal value
Converting 100110 to decimal
100110
=> 1x2^5+0x2^4+0x2^3+1x2^2+1x2^1+0x2^0
=> 1x32+0x16+0x8+1x4+1x2+0x1
=> 32+0+0+4+2+0
=> 38
Answer: -38

15)
011 1101 ROL rotates left and gives 111 1010 and C will be 0

16)
Hexadecimal     Binary
    0           0000
    1           0001
    2           0010
    3           0011
    4           0100
    5           0101
    6           0110
    7           0111
    8           1000
    9           1001
    A           1010
    B           1011
    C           1100
    D           1101
    E           1110
    F           1111
Use this table to convert from hexadecimal to binary
Converting 93A to binary
9 => 1001
3 => 0011
A => 1010
So, in binary 93A is 100100111010

Now converting 93A to decimal
since left most bit is 1, this number is negative number.
so, follow these steps below to convert this into a decimal value.
I. first flip all the bits. Flip all 0's to 1 and all 1's to 0.
   100100111010 is flipped to 011011000101
II. Add 1 to above result
011011000101 + 1 = 011011000110
III. Now convert this result to decimal value
Converting 11011000110 to decimal
11011000110
=> 1x2^10+1x2^9+0x2^8+1x2^7+1x2^6+0x2^5+0x2^4+0x2^3+1x2^2+1x2^1+0x2^0
=> 1x1024+1x512+0x256+1x128+1x64+0x32+0x16+0x8+1x4+1x2+0x1
=> 1024+512+0+128+64+0+0+0+4+2+0
=> 1734
Answer: -1734

18)
Converting 13.57 to binary
Convert decimal part first, then the fractional part
> First convert 13 to binary
Divide 13 successively by 2 until the quotient is 0
   > 13/2 = 6, remainder is 1
   > 6/2 = 3, remainder is 0
   > 3/2 = 1, remainder is 1
   > 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1101
So, 13 of decimal is 1101 in binary
> Now, Convert 0.57000000 to binary
   > Multiply 0.57000000 with 2. Since 1.14000000 is >= 1. then add 1 to result
   > Multiply 0.14000000 with 2. Since 0.28000000 is < 1. then add 0 to result
   > Multiply 0.28000000 with 2. Since 0.56000000 is < 1. then add 0 to result
   > Multiply 0.56000000 with 2. Since 1.12000000 is >= 1. then add 1 to result
   > Multiply 0.12000000 with 2. Since 0.24000000 is < 1. then add 0 to result
   > Multiply 0.24000000 with 2. Since 0.48000000 is < 1. then add 0 to result
0.57 of decimal is .100100 in binary
so, 13.57 in binary is 1101.100100
Answer: 1101.100100



Related Solutions

Give the signed decimal value of D03 (12 bits, show work)
Give the signed decimal value of D03 (12 bits, show work)
1. Give the signed decimal value of A93 (12 bits, show work)
1. Give the signed decimal value of A93 (12 bits, show work)
Convert from binary to decimal to hexadecimal (PLEASE SHOW ALL WORK) a. 1010 1011 - decimal:...
Convert from binary to decimal to hexadecimal (PLEASE SHOW ALL WORK) a. 1010 1011 - decimal: - hexadecimal b. 0011 0001 - decimal: - hexadecimal: c. 1110 0111 - decimal: - hexadecimal: d. 1111 1111 - decimal: - hexadecimal:
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert...
1a. Convert 67 (base 10) to 8-bit binary using signed magnitude. Show your work. 1b. Convert 69 (base 10) to 8-bit binary using one’s complement. Show your work 1c. Convert 70 (base 10) to 8-bit binary using two’s complement. Show your work. 1d. Convert - 67 (base 10) to 8-bit binary using signed magnitude. 1e. Convert - 67 (base 10) to 8-bit binary using ones compliment. Show your work. 1f. Convert - 67 (base 10) to 8-bit binary using 2s...
Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK) 1. B2 - binary: - decimal:...
Convert from hexadecimal to binary to decimal (PLEASE SHOW WORK) 1. B2 - binary: - decimal: 2. 37 - binary: - decimal: 3. 0A -binary: - decimal: 4. 11 - binary: - decimal:
convert the binary number(base 2) To Octal (base 8) to decimal (base 10) a. 101 b....
convert the binary number(base 2) To Octal (base 8) to decimal (base 10) a. 101 b. 1001 c. 101010 d.1101101 convert the number to the other base a. 253 base 10 to base 8 b. 98 base 10 to base 3 C. 1340 base 10 to base 16 D. AB Base 16 to base 8 E. 111010 base 2 to base 16 F. 1010101 base 2 to base 6 g. 69 base 10 to base 2 h . 1023 base...
represent the decimal number 101 and 6 as floating point binary numbers please show your work...
represent the decimal number 101 and 6 as floating point binary numbers please show your work and explained, I have a test.
Add 011 0011 to 010 1100 and show the V and C bits (seven bits and...
Add 011 0011 to 010 1100 and show the V and C bits (seven bits and show work)
Add 111 0011 to 100 1100 and show the V and C bits (seven bits)
Add 111 0011 to 100 1100 and show the V and C bits (seven bits)
Part 2: Signed values: Convert each as indicated. 7. Decimal to Hexadecimal (1 byte, signed magnitude)...
Part 2: Signed values: Convert each as indicated. 7. Decimal to Hexadecimal (1 byte, signed magnitude)      a. -18      b. -41
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT