Computer Science, asked by nannaware21, 4 months ago

The integer-equivalents of 10110000 in the sign-magnitude representation and the 2's complement representation are 'x' and 'y' respectively. Then, what is the absolute value of 'x-y'? Enter your answer in the textbox given below. Please ensure that you enter no space inside the textbox.​

Answers

Answered by krithikasmart11
0

Answer:

written below-

Explanation:

. Get the binary representation in one's complement:

* Run this step only if the number is negative *

Subtract 1 from the binary initial number:

1110 0010 - 1 = 1110 0001.

. Get the binary representation of the positive (unsigned) number:

* Run this step only if the number is negative *

Flip all the bits in the signed binary one's complement representation (reverse the digits) - replace the bits set on 1 with 0s and the bits on 0 with 1s:

!(1110 0001) = 0001 1110.

#SPJ2

Answered by hemakumar0116
0

Explanation:

In one's complement, obtain the binary representation:

Only carry out this action if the number is negative.

Add 1 to the binary starting number:

1110 0010 - 1 = 1110 0001.

Get the positive (unsigned) number's binary representation by doing the following:

Only carry out this action if the number is negative.

Reverse the digits and flip all the bits in the signed binary one's complement form, changing the bits set on 1 to 0 and the bits on 0 to 1:

!(1110 0001) = 0001 1110.

The positive integers that are relatively prime to an integer n are counted using Euler's totient function. It is also known as Euler's phi function and is written using the Greek letter phi as displaystyle varphi (n)varphi (n) or displaystyle phi (n)phi (n). It is the quantity of integers k in the interval 1 k n for which the greatest common divisor gcd(n, k) = 1. [2] [3] This form's integers k are occasionally referred to as totatives of n.

#SPJ2

Similar questions