Computing in Security (Conversion Help)

1.) Express each decimal number as an 8-bit 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!

  1. 👍
  2. 👎
  3. 👁
  4. ℹ️
  5. 🚩
  1. Two's complement is a notation that represents both positive and negative numbers. The most significant (left-most) 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 eight-bit number, the range goes from -128 to 127.

    A positive number is represented by a usual binary number format, using the 7 low-order (right-most) bits, and represent from 0 to 127.

    A negative number is simply the reversal of the bits and then add 1.

    -10(decimal)=11110101 + 1

    -18(decimal)=11101101 + 1

    and so on.

    To negate a negative number, subtract one and reverse the bits.

    For example,
    subtract 1
    Reverse bits
    00010010 (binary -18)

    1. 👍
    2. 👎
    3. ℹ️
    4. 🚩

Respond to this Question

First Name

Your Response

Similar Questions

  1. math

    Caitlyn calculated the probability of the complement of rolling a number greater than 2 on a 6-side number cube. She made her calculation as follows. Did she make an error? Explain.

  2. math

    Find the probability of rolling an even number and then rolling a 6 when a number cube is rolled twice. Express the probability as percent rounded to 1 decimal place. P(even and then a 6) =

  3. Probability please help!

    The digits 2, 3, 4, 7, and 8 are each used once in a random order to form a five-digit number. What is the probability that the resulting number is divisible by 4? Express your answer as a common fraction.

  4. Math

    1. Write 6 x 10^4 in standard form. A. 600 B. 6,000 C. 60,000 D. 600,000 2. write 2.3 x 10^3 in standard form. A. 230 B. 2,300 C. 23,000 D. 230,000 3. Write 968,000 in scientific notation. A. 968 x 10^3 B. 9.68 x 10^2 C. 9.68 x

  1. math

    A fair, six-sided die is rolled eight times, to form an eight-digit number. What is the probability that the resulting number is a multiple of 8? Express your answer as a common fraction.

  2. Math

    A teacher asks each student in the class to randomly choose a number between 1 to 80 and write it down. Devon and Michiko write down a number. What is the probability that both of their choices will be greater than 60? Express

  3. Math~Fractions ans decimals

    1. Write the fraction or mixed number as a decimal. 7/8 0.78 0.875* 0.8777 1.875 2. Write the fraction or mixed number as a decimal 1 1/2 0.50 1.5* 1.05 1.1 3. Write the fraction or mixed number as a decimal. 4 3/8 0.375 4.35

  4. math

    (i) Express the complex number z = 4i/(1-i√3)in Cartesian form. (ii) Determine the modulus and argument of z, and hence express z in polar form. (b) Solve the equation z4 − z = 0, expressing your solutions in Cartesian form.

  1. math

    Find the binary equivalent of x^8+x^3+x+1 x^1000 + x^11 + x + 1 I just converted the decimal-format exponents to binary format (0's and 1's times powers of 2). The reason you did not get a reply so far is that most of the tutors

  2. Math

    What are irrational, rational, and natural numbers? A rational number is a number that can be written as a ratio. That means it can be written as a fraction, in which both the numerator (the number on top) and the denominator (the

  3. Urgent math

    population growth model. Can anybody please help me out in trying to solve this problem? It's my homework and I don't seem to understand what I am getting. The count in a culture of bacteria was 400 after 2 hours and 25,600 after

  4. Algeabra

    For the second company, express in a table the cost of the cab ride given the number of miles provided. Number of Miles 0 1 2 3 4 5 Total Cost (dollars) a. For the second company write an equation in point-slope form. b. What does

View more similar questions or ask a new question.