Computing in Security (Conversion Help)
posted by Francesca .
1.) Express each decimal number as an 8bit binary number in the 2's complement form and then find the negative of the representation of that number in two’s compliment
a.) +18
b) 117
Thanks for any help!

Computing in Security (Conversion Help) 
MathMate
Two's complement is a notation that represents both positive and negative numbers. The most significant (leftmost) is the sign bit, which is turned on when the number is negative.
Unlike the one's complement, there is only one representation of zero.
For an eightbit number, the range goes from 128 to 127.
A positive number is represented by a usual binary number format, using the 7 loworder (rightmost) bits, and represent from 0 to 127.
A negative number is simply the reversal of the bits and then add 1.
Example:
10(decimal)=00001010(binary)
10(decimal)=11110101 + 1
=11110110
18(decimal)=00010010(binary)
18(decimal)=11101101 + 1
=11101110
and so on.
To negate a negative number, subtract one and reverse the bits.
For example,
18(decimal)=11101110
subtract 1
11101101
Reverse bits
00010010 (binary 18)
Respond to this Question
Similar Questions

computer science /use java language
write the program that inputs a string representing a binary number(0s and 1s). First, your program should veerify that it is indeed a binary number, that is, the number contains only 0s and 1s . if that is not the case, your program … 
computer science
What is the binary representation of the following hexadecimal number? 
programming 2
Write a program that inputs a word representing a binary number (0s and 1s). First, your program should verify that it is indeed a binary number, that is, the number contains only 0s and 1s. if that is not the case, your program should … 
computer or math
pls help me to solve this question. thank you very much binarydecimal conversion a.101= b.1100= c.100110= d.111111= decimal binary conversion a.1216 10 b.2121 10 
math
The following numbers can be represented as 8bit numbers in the binary representation.Which of these has a ‘1’ in the second place from the right in the binary representation? 
computer science
a) What is the largest positive number that can be represented in 12 bits using one’s complement? 
Computer Science
Convert the following binary numbers to decimal (6 points): 11111 101011 1101011 Convert the following decimal numbers to binary (6 points): 49 367 1023 Convert the following hex numbers to decimal (4 points): ACE 800 Convert the following … 
programming ( qbasic)
i was given this program by my teacher. it converts decimal number to binary number.. Why is that FIX kept in front of (n/2) ...6th line of the program. why is that FIX written and why? 
Algebra
Determine all pairs (m, n) of a twodigit natural number m and a singledigit natural number n satisfying the following conditions. 1) If the number n is given as the number between the two digits of the number m, then a threedigit … 
Math
Determine all pairs (m, n) of a twodigit natural number m and a singledigit natural number n satisfying the following conditions. 1) If the number n is given as the number between the two digits of the number m, then a threedigit …