Show the binary representation of decimal 417. Then show the one’s complement of 417, and the two’s complement of 417.

What will be an ideal response?


Binary:
512 256 128 64 32 16 8 4 2 1
256 128 64 32 16 8 4 2 1
(1*256)+(1*128)+(0*64)+(1*32)+(0*16)+(0*8)+(0*4)+(0*2)+
(1*1)
110100001
One’s complement: 001011110
Two’s complement: 001011111
Check: Original binary number + its two’s complement
110100001
001011111
---------
000000000

Computer Science & Information Technology

You might also like to view...

If you attempt to add an int, a byte, a long, and a double, the result will be a __________ value.

a. byte b. int c. long d. double

Computer Science & Information Technology

MLA style requires that the top row of each paragraph is indented 0.5" to the right, called a ________ indent

A) first line B) hanging C) standard D) modified

Computer Science & Information Technology

A ____ is an environment in which you can create programs by dragging components such as buttons and labels onto a screen and arranging them visually.

A. visual development environment B. virtual development environment C. visual design environment D. virtual design environment

Computer Science & Information Technology

Explain the difference between theNumberandMathclasses.

What will be an ideal response?

Computer Science & Information Technology