Represent 60 in binary using 8-bit as an un-signed integer.
Then represent 60 in binary using 8-bit signed magnitude.
show work
60 ----- Since this is a positive number. we can directly convert this into binary Divide 60 successively by 2 until the quotient is 0 60/2 = 30, remainder is 0 30/2 = 15, remainder is 0 15/2 = 7, remainder is 1 7/2 = 3, remainder is 1 3/2 = 1, remainder is 1 1/2 = 0, remainder is 1 Read remainders from the bottom to top as 111100 Adding 2 zero(s) on left hand side of this number to make this of length 8 So, 60 in normal binary format is 00111100 Answer: ---------- un-signed integer: 00111100 signed magnitude: 00111100
Get Answers For Free
Most questions answered within 1 hours.