Главная
/
Математика
/
7) Show How -65_(10) Is Represented in the Following Notations: A) Two's Complement Notation (2 Marks) B) Signed Magnitude Notation (2

Вопрос

7) Show how -65_(10) is represented in the following notations: a) Two's complement notation (2 Marks) b) Signed magnitude notation (2 Marks) c) Excess notation (2 Marks)

Решения

4.7 (193 Голоса)
Юлиан
Экспертная проверка
профессионал · Репетитор 6 лет

Ответ

a) Two's complement notation:To represent in two's complement notation, we first find the binary representation of the positive number . The binary representation of is . To find the two's complement representation, we invert all the bits (change 0s to 1s and 1s to 0s) and then add 1 to the result. Inverting the bits of gives . Adding 1 to this result gives . Therefore, the two's complement representation of is .b) Signed magnitude notation:In signed magnitude notation, the leftmost bit represents the sign of the number. A 0 represents a positive number, and a 1 represents a negative number. The remaining bits represent the magnitude of the number. For , the sign is negative, so the leftmost bit is 1. The magnitude is , which is in binary. Therefore, the signed magnitude representation of is .c) Excess notation:Excess notation is similar to two's complement notation, but the excess value is added to the magnitude to represent the signed number. The excess value is a fixed number that is added to the magnitude to get the signed number. For , we can use the same binary representation as in two's complement notation, which is . The excess value for this representation is 1. Therefore, the excess notation representation of is .