6.8k views
3 votes
Translate the following signed decimal numbers to 8-bit hexadecimal:

a. -35
b. 78
c. -100
d. 255

User Shucao
by
7.1k points

1 Answer

4 votes

Final answer:

To translate a signed decimal number to 8-bit hexadecimal, you first need to convert the number to binary and then convert the binary number to hexadecimal.

Step-by-step explanation:

To translate a signed decimal number to 8-bit hexadecimal, you first need to convert the number to binary and then convert the binary number to hexadecimal. Let's go through each example:

  1. -35: First, convert -35 to binary by taking the absolute value and converting it to binary: 35 = 00100011. Add a negative sign to the binary number: -00100011. Then, convert the binary number to hexadecimal: -0010 = 2 and 0011 = 3, so the hexadecimal representation of -35 is 23.
  2. 78: Convert 78 to binary: 78 = 01001110. Convert the binary number to hexadecimal: 0100 = 4 and 1110 = E, so the hexadecimal representation of 78 is 4E.
  3. -100: Convert -100 to binary: 100 = 01100100. Add a negative sign to the binary number: -01100100. Convert the binary number to hexadecimal: -0110 = 6 and 0100 = 4, so the hexadecimal representation of -100 is 64.
  4. 255: Convert 255 to binary: 255 = 11111111. Convert the binary number to hexadecimal: 1111 = F and 1111 = F, so the hexadecimal representation of 255 is FF.

User Jbradaric
by
7.9k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.

9.4m questions

12.2m answers

Categories