Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

17. Convert the decimal number -1 to an 8-bit two’s complement binary number. 18

ID: 3702897 • Letter: 1

Question

17. Convert the decimal number -1 to an 8-bit two’s complement binary number.

18. Convert the decimal number -2 to an 8-bit two’s complement binary number.

19. Convert the decimal number -3 to an 8-bit two’s complement binary number.

20. Convert the decimal number -4 to an 8-bit two’s complement binary number.

21. Convert the decimal number -255 to an 8-bit two’s complement binary number.

22. Convert the decimal number -254 to an 8-bit two’s complement binary number.

23. Convert the decimal number -253 to an 8-bit two’s complement binary number.

24. Convert the decimal number -252 to an 8-bit two’s complement binary number.

Explanation / Answer

17. First, we should take a positive decimal number 1 in the binary form which is 00000001. And then we should take one's complement of that number which is 11111110. By adding 1 to that one's complement we will get the two's complement of the number which is a negative number in decimal form. We get 11111111 as two's complement to 00000001. In this way, we convert the decimal negative numbers into the binary form.

18. This is also in the same as above one.At first, the binary form of positive 2 is 00000010. one's complement is 11111101. We will get two's complement by adding 11111101 + 1 i.e., 11111110. Therefore, the binary form of -2 is 11111110

19. This is also in the same as above one. At first, the binary form of positive 3 is 00000011. one's complement is 11111100. We will get two's complement by adding 11111100 + 1 i.e., 11111101. Therefore, the binary form of -3 is 11111101.

20. This is also in the same as above one.At first, the binary form of positive 4 is 00000100. one's complement is 11111011. We will get two's complement by adding 11111011 + 1 i.e., 11111100. Therefore, the binary form of -4 is 11111100

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote