Question

Translate the base 10 value -45 into 8-bit two's complement representation.

Translate the base 10 value -45 into 8-bit two's complement representation.

Homework Answers

Answer #1

Write down the decimal number and continually divide by 2 to give a result and a remainder. The remainder is either a 1 or a 0.

45 /  2  result 22 remainder  1
22 /  2  result 11 remainder  0
11 /  2  result 5  remainder  1
5  /  2  result 2  remainder  1
2  /  2  result 1  remainder  0
1  /  2  result 0  remainder  1

Read the remainders from bottom to top.

( 45 )10 = ( 101101 )2

( 45 )10 in 8-bit is ( 00101101 )2

Ones complement 
= Inverting all the bits in binary
= 11010010

Twos complement 
= Ones complement + 1
= 11010010 + 1
= 11010011

11010011
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
Question 37 Which of the following is the 8-bit two's complement for -49?
Question 37 Which of the following is the 8-bit two's complement for -49?
Design a sequential circuit that will negate four-bit two's complement integer. That is if, for example,if...
Design a sequential circuit that will negate four-bit two's complement integer. That is if, for example,if the input is 3 (in two's compliment representation) the output should be -3 (in two's complement notation). Start with the truth table, next write the formulas for each output in SOP form, next simplify formulas using Karnaugh maps and finally draw the simplified circuit. Thank you
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain...
A). Convert following decimal integers to 8-bit two's complement binary numbers using any method . Explain why, If decimal number cannot be represented with 8 bits. a. -46 b. -63 c. 118 d. -128 e. 128 B). Perform following operations by converting the decimal numbers to 8-bit two’s complement binary. Check results by converting final result to decimal a. 94-53 b. 15–84
Consider decimal number 1027. This value is stored as a 16-bit two's complement number into addresses...
Consider decimal number 1027. This value is stored as a 16-bit two's complement number into addresses 124 and 125 on a little endian machine which has an addressable cell size of one byte. What values (in hexadecimal) are in each of these addresses: 124:   125:
1a) 0xCAFE can be written in decimal (base 10) as: 1b) The decimal number -94 can...
1a) 0xCAFE can be written in decimal (base 10) as: 1b) The decimal number -94 can be expressed (in 8 bits) Using signed magnitude representation as: Using one's complement representation as: Using two's complement representation as: Using excess-M representation (with the appropriate value of M) as: 1c) Using the simple floating point model (1-bit sign, 5-bit biased exponent, and 8-bit significand), the number -0.125 (decimal) can be expressed as: (Do not use spaces or any English text. Provide only the...
The following 5 questions use two's complement representation. You MUST use 5 (five) bit binary. (ex....
The following 5 questions use two's complement representation. You MUST use 5 (five) bit binary. (ex. 000012) DO NOT Extend beyond 5 bits. A = +13 B = +4 C = -6 a.) A - B = _______________ 2        b.) A - B results in overflow. true or false? c.)C + A = _____________ 2 d.)C + A results in overflow. true or false? e.) C - A = ______________________2 f.) C - A results in overflow. true or false?...
Assume a computer is using signed magnitude base 2 representation to store 8-bit values. Further, assume...
Assume a computer is using signed magnitude base 2 representation to store 8-bit values. Further, assume you have a program which can display the contents of 1-byte memory locations. However, the program displays hex (as a shorthand) instead of binary. What decimal values are represented by the following: (a) C3 (b) 6E Repeat the above, but assume the numbers are stored as 8-bit 2’s complement base 2.
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement...
6. What decimal number does the bit pattern 0xBF800000 represent if it is: A two's complement integer An unsigned integer A floating point number assuming the IEE 754 single precision format PLEASE EXPLAIN AND SHOW WORK
Consider the number below, which is stored inside a computer which uses 16-bit 2’s complement base...
Consider the number below, which is stored inside a computer which uses 16-bit 2’s complement base 2 representation. 1101011001110101 (a) Is this number negative? Why, or why not? (b) Show the resulting value (“bit pattern”) after apply the 2’s complement negation operation to the given value. Is the resulting 2’s complement value (“bit pattern”) a negative number? Explain your answer.
Express the decimal number (-37)10 as an 8-bit 2's complement binary number. Given the two signed...
Express the decimal number (-37)10 as an 8-bit 2's complement binary number. Given the two signed binary numbers (2's comp.) X = -8 and Y = 14, what is their sum? What is the BCD representation of the decimal value (9371)10?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT