Question

1.The following number is in binary. Convert it to decimal. 0010 1010 2.Add the following two...

1.The following number is in binary. Convert it to decimal. 0010 1010 2.Add the following two binary numbers together and express your results in binary. 1000 1010 + 0111 0000 3.Add the following two binary numbers together and express your results in decimal. 0010 1010 + 0111 1100 4.The following number is in hexadecimal. Convert it to binary. 0x42 5.The following number is in hexadecimal. Convert it to decimal. 0xFE 6.The following number is in decimal. Convert it to hexadecimal. 223

Homework Answers

Answer #1
1)
=> 00101010
=> 0x2^7+0x2^6+1x2^5+0x2^4+1x2^3+0x2^2+1x2^1+0x2^0
=> 0x128+0x64+1x32+0x16+1x8+0x4+1x2+0x1
=> 0+0+32+0+8+0+2+0
=> 42
Answer: 42

2)
Adding 10001010 and 01110000 in binary
    10001010
    01110000
-------------
    11111010
-------------
Answer: 11111010

3)
Adding 00101010 and 01111100 in binary
    00101010
    01111100
-------------
    10100110
-------------
=> 10100110
=> 1x2^7+0x2^6+1x2^5+0x2^4+0x2^3+1x2^2+1x2^1+0x2^0
=> 1x128+0x64+1x32+0x16+0x8+1x4+1x2+0x1
=> 128+0+32+0+0+4+2+0
=> 166
Answer: 166

4)
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 42 to binary
4 => 0100
2 => 0010
So, in binary 42 is 01000010
Answer: 01000010

5)
FE
=>  15*16 + 14
=>  240 + 14
=>  254
Answer: 254

6)
223
Divide 223 successively by 16 until the quotient is 0
223/16 = 13, remainder is 15
13/16 = 0, remainder is 13
15 in hexadecimal is F
13 in hexadecimal is D
Read remainders from the bottom to top as DF
Answer: 0xDF
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
7. Encode the following message using the ASCII encoding scheme:  I love CS! 1. 0100 0011 0101...
7. Encode the following message using the ASCII encoding scheme:  I love CS! 1. 0100 0011 0101 0011 0010 0000 0111 0010 0111 0101 0110 1100 0110 0101 0111 0011 0010 0001 2. 0100 0011 0101 0011 0010 0000 0111 0010 0111 0101 0111 1100 0110 0101 0111 0011 0010 0001 3. 0100 1001 0010 0000 0110 1100 0110 1111 0111 0110 0110 0101 0010 0000 0100 0011 0101 0011 0010 0001 4. 0100 0011 0101 0011 0010 0000 0111 0010...
Convert the binary value 0101 to decimal: Convert the binary value 1001 to decimal: Convert the...
Convert the binary value 0101 to decimal: Convert the binary value 1001 to decimal: Convert the binary value 1010 to decimal: Convert the binary value 1101 1001 to decimal: Convert the binary value 1010 1011 to decimal: Convert the binary value 1110 1100 to decimal: Convert the decimal value 41 to binary: Convert the decimal value 15 to binary: Convert the decimal value 341 to binary: Convert the binary value 1110 1010 to hexadecimal: Convert the binary value 1011 0101...
1. Convert 101 from binary to decimal. Show your work. 2. Convert 11111111 from binary to...
1. Convert 101 from binary to decimal. Show your work. 2. Convert 11111111 from binary to hexadecimal. Show your work. 3. Convert 11001 from binary to decimal. Show your work. 4. Convert A4B from hexadecimal to binary. Show your work. 5. Convert 1100100 from binary to decimal. Show your work. 6. Convert 15 from decimal to binary. Show your work. 7. Convert 255 from decimal to binary. Show your work. 8. Convert BAC4 from hexadecimal to decimal. Show your work....
2 Convert each of the following octal numbers to 10-bit binary, hexadecimal, and decimal. Show your...
2 Convert each of the following octal numbers to 10-bit binary, hexadecimal, and decimal. Show your work. (a) 368 (b) 7568 3 Convert the following binary values into Decimal, Octal and hexadecimal. Show your work. (a) 111010101011112 (b) 1010111011001102 (c) 1011101010001112 (d) 1111101011102 4 Convert the following hexadecimal numbers to 16-bit binary and decimal numbers. Show your work. (a) FE9816 (b) FCAD16 (c) B00C16 (d) FEDF16 5 Perform the addition on the following unsigned binary numbers. Indicate whether or not...
If the binary code for LOAD is (0001), for ADD is (0011), for STORE is (0010)...
If the binary code for LOAD is (0001), for ADD is (0011), for STORE is (0010) for JMP is (1000) and for END is (0111). Assuming a 16 bits format, write the executable code (binary representation) of the following program: (10 points) Note: use 4 bits for the op-code and 12 bits for the ADDR. LOAD <25> ADD     <33> STORE <15> JMP        <8> END
16.  Convert the following decimal notation to an equivalent binary notation: 2.75 17. If the following uses...
16.  Convert the following decimal notation to an equivalent binary notation: 2.75 17. If the following uses the floating-point format defined in Figure 1.25 of the textbook, what is the decimal notation for this number: 01100101 18. Encode the following decimal value using the 8-bit floating-point format of Figure 1.25: 7/8 HINT: Be sure to use the normalized form. Note: Answer should be in the format n nnn nnnn 19. Encode the following decimal value using the 8 bit floating point...
Convert the hexadecimal number DEADBEEF to binary. Convert the following decimal number to binary: a) 356...
Convert the hexadecimal number DEADBEEF to binary. Convert the following decimal number to binary: a) 356              b) 658 What decimal value does the 8-bit binary number 10011110 represent if it is on a computer using two’s complement representation? What decimal value does the 8-bit binary number 10110100 have if it is on a computer using two’s complement representation? please show your work for question number 4. thank you.
1-What is the decimal number of the binary numbers (101111)2? 2-What is 123 in BCD code?...
1-What is the decimal number of the binary numbers (101111)2? 2-What is 123 in BCD code? 3-Convert the binary (10101011101)2 into octal and hexadecimal? 4-What is 2's complement of (1101110)2? 5-Convert the decimal number 152.25 into binary?
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and...
EE 263 Homework Assignment 1    Perform the following conversions: Convert 51 (decimal) to binary and to hex Convert 0xD1 (hexadecimal) to binary and to decimal Convert 0b11001001 (binary) to hex and to decimal Find the 2’s complement of the following 4-bit numbers 1101 0101 Perform the following 4-bit unsigned operations. For each, indicate the 4-bit result and the carry bit, and indicate if the answer is correct or not. 5 + 8 2 + 12 13 – 7 4...
Convert each of following numbers to Hexadecimal numbers, showing all steps. a. (1111 0111)2 b. (1010...
Convert each of following numbers to Hexadecimal numbers, showing all steps. a. (1111 0111)2 b. (1010 1010 1010)2 c. (777) 8 d. (443) 8 e. (998)10 f. (1066)10