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)
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...
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
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system....
(a) Convert the decimal numbers, 70 and -26 to binary in the signed 2’s complement system. Make sure there are enough digits in the results to be able to perform arithmetic operations with these two numbers. (b) Perform in the signed 2’s complement system, (+70) + (-26) (c) Perform in the signed 2’s complement system, (-70) - (-26) (d) Perform in the signed 2’s complement system, (+70) + (+26)
1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed...
1. Complete the following table using 8-bit representation ((show your work to get credit) Decimal Signed Magnitude One’s Complement Two’s Complement 30 -47 0
The unsigned decimal value (1,036)10 is to be stored as a 16-bit word in memory. Show...
The unsigned decimal value (1,036)10 is to be stored as a 16-bit word in memory. Show the 16-bit unsigned binary representation of (1,036)10. Show the 4-digit unsigned hexadecimal representation of (1,036)10. The unsigned binary value of part (a) should be stored using two bytes of a byte-addressable memory at locations 400 and 401. Specify the hexadecimal value in each byte for a “big endian” instruction set architecture. Give your answer by showing a table like the one below.                                                                                               ...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT