What decimal number does the bit pattern 10101100 represent if it is a:
What decimal number does the bit pattern 01010011 represent if it is a:
1. Given bit pattern : 10101100
a) if it is unsigned integer : 1 * 27 + 1 * 25 + 1 * 23 + 1 * 22
= 128 + 32 + 8 + 4 = 172
b) If it is a sign-magnitude integer : 10101100 -- MSB is 1. So it is a negative integer
0101100 = 1 * 25 + 1 * 23 + 1 * 22 = 32 + 8 + 4 = 46
= -46
c) If it is two's complement integer : 10101100 -- MSB is 1. So it is a negative number.
-- first invert the bits ====> 01010011
-- Now add 1 to it. =====> 01010011
+ 1
--------------------
01010100
magnitude of 01010100 = 1 * 26+ 1 * 24 + 1 * 22 = 64 + 16 + 4 = 84
So = -84.
2. Given bit pattern 01010011
a) if it is unsigned integer : 1 * 26+ 1 * 24 + 1 * 21 + 1 * 20 = 64 + 16 + 2 + 1 = 83
b) If it is a sign-magnitude integer : 01010011 - MSB is 0. So it is a positive number.
So the integer = 83
c) If it is two's complement integer : 01010011 -- MSB is 0. So it is a Positive number.
So the integer = 83, because for positive 2's complement we dont need to do anything.
Unsigned integer:
Think of it as a plain binary number.
Calculation: 1×2⁷ + 0×2⁶ + 1×2⁵ + 0×2⁴ + 1×2³ + 1×2² + 0×2¹ + 0×2⁰ = 128 + 0 + 32 + 0 + 8 + 4 + 0 + 0 = 172.
Sign-magnitude integer:
The first bit is the sign (1 = negative), the rest is the magnitude.
Magnitude: 0101100 = 0×2⁶ + 1×2⁵ + 0×2⁴ + 1×2³ + 1×2² + 0×2¹ + 0×2⁰ = 0 + 32 + 0 + 8 + 4 + 0 + 0 = 44.
Final value: -44.
Two's complement integer:
The first bit is negative, so invert the bits and add 1 to find the positive equivalent.
Original: 10101100
Invert: 01010011
Add 1: 01010100 = 84
Final value: -84.
Unsigned integer:
Plain binary number.
Calculation: 0×2⁷ + 1×2⁶ + 0×2⁵ + 1×2⁴ + 0×2³ + 0×2² + 1×2¹ + 1×2⁰ = 0 + 64 + 0 + 16 + 0 + 0 + 2 + 1 = 83.
Sign-magnitude integer:
First bit is 0 = positive, the rest is the magnitude.
Magnitude is the same as above: 83.
Final value: +83.
Two's complement integer:
First bit is 0, so it's the same as the unsigned value.
Final value: +83.
10101100: Unsigned = 172, Sign-magnitude = -44, Two's complement = -84.
01010011: Unsigned = 83, Sign-magnitude = +83, Two's complement = +83.
What decimal number does the bit pattern 10101100 represent if it is a: [1 pts] unsigned...
3 - What decimal number does the bit pattern 11001100 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 4 - What decimal number does the bit pattern 00110011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? If you could show work that would be helpful as I have to do that to get credit....
Please show and explain all work for each questions What decimal number does the bit pattern 11001100 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 4 - What decimal number does the bit pattern 00110011 represent if it is a: • [1 pts] unsigned integer? • [1 pts] sign-magnitude integer? • [1 pts] two's complement integer? 5 - [2 pts] What is the binary representation of the...
6 - What decimal number does the bit pattern 0xC0B00000 represent if it is: • [2 pts] A two's complement integer? • [2 pts] An unsigned integer? • [2 pts] A floating point number assuming the IEE 754 single precision format 7 - Perform the following calculations assuming that the values are 8-bit decimal integers stored in two's complement format. Be sure to consider the possibility of overflow. • [2 pts] 10101010 + 00110011 • [2 pts] 10101010 – 00110011...
2. a) What decimal number does the bit pattern 0×0C000000 represent if it is a two’s complement integer? An unsigned integer? b) What decimal number does the bit pattern 0×0C000000 represent if it is a floating point number? Use the IEEE 754 standard. c) If the bit pattern 0×0C000000 is placed into the Instruction Register, what MIPS instruction will be executed?
5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decimal) b. an unsigned integer? (convert them to decimal) c. a MIPS instruction?
5. (10 pts) Given the 32-bit pattern: 1000 1111 0001 0110 0000 0000 0110 1000 hat does it represent respectively, assuming that it is a signed (2's complement) integer? (convert them to decimal) b. an...
4. What decimal value does the 8-bit binary number 10011110 have if: a) It is interpreted as an unsigned number? b) It is on a computer using signed-magnitude representation? c) It is on a computer using ones complement representation? d) It is on a computer using twos complement representation? 5. Given the following two binary numbers: 11111100 and 01110000. a) Which of these two numbers is the larger unsigned binary number? b) Which of these two is the larger when it is being...
1. What is the largest decimal number we can represent with a 16 bit two's complement number? 2. Convert the following signed binary numbers to decimals. 11001 010011 1110100 1100111 3. Convert the following decimal numbers to 6-bit two's complement binary numbers and add them. Note if there is an overflow. 7 + 13 Two's complement/binary number for 7: Two's complement/binary number for 13: Sum: Overflow? 4. Convert the following decimal numbers to 6-bit two's complement binary numbers...
(3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a. What is the range of the expressible numbers? b. What is the precision? c. What is the error? ______________________________________________________________________________ (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below (Note: the space in the binary string is purely for visual convenience) Show your work. Using...
A memory byte location contains the pattern 01010011. What decimal value does this pattern represent when interpreted as a binary number? What does it represent as an ASCII code?
What decimal number does the following bit pattern represent if it is a single precision floating-point number using the IEEE 754 standard? 0x0D000000 0xC4650000