answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
zhenek [66]
2 years ago
3

8. (P4) a. Suppose you have the following 2 bytes: 01011100 and 01100101. What is the 1s complement of the sum of these 2 bytes?

b. Suppose you have the following 2 bytes: 11011010 and 01100101. What is the 1s complement of the sum of these 2 bytes? c. For the bytes in part (a), give an example where one bit is flipped in each of the 2 bytes and yet the 1s complement doesn’t change.
Computers and Technology
1 answer:
timurjin [86]2 years ago
6 0

Answer:

a) 00111110

b) 11000000

c) We get 00111110 when one bit is flipped in each of the 2 bytes and yet the 1s complement doesn’t change.

Explanation:

a) The sum of 01011100 and 01100101 is as indicated below:

                    01011100

                + <u> 01100101</u>

                   <u>11000001</u>

Therefore, the sum of these 2 bytes 01011100 and 01100101 equals 11000001.

Next we determine the 1s complement, this is usually obtained by reversing the bits i.e 1 to 0 and 0 to 1. Therefore, the 1s complement of  11000001 is 00111110.

Therefore, the 1s complement of the sum of these 2 bytes 01011100 and 01100101 equals 00111110.

b) The sum of 11011010 and 01100101 is as indicated below:

                    11011010

                +  <u>01100101</u>

                    <u>00111111</u>

The carry is ignored as we are dealing with 8 bits

Therefore, the sum of these 2 bytes 11011010 and 01100101 equals 00111111.

Next we determine the 1s complement, this is usually obtained by reversing the bits i.e 1 to 0 and 0 to 1. Therefore, the 1s complement of  00111111 is 11000000.

Therefore, the 1s complement of the sum of these 2 bytes 11011010 and 01100101 equals 11000000.

c)  Using the 2 bytes in part (a)

The sum of 01011100 and 01100101 is as indicated below:

                    01011100

                + <u> 01100101</u>

                   <u>11000001</u>

Therefore, the sum of these 2 bytes 01011100 and 01100101 is 11000001.

The 1s complement of  11000001 is 00111110.

When the most significant bit is flipped 01011100 we get <u>11011100</u>. We get  <u>11100101 </u>when the most significant bit of 01100101  is flipped.

Now we determine their sum:

                    11011100

                + <u> 11100101 </u>

                   <u>11000001</u>

The carry is ignored as we are dealing with 8 bits

Therefore, the sum of these 2 bytes 11011100and 11100101 is 11000001.

The 1s complement of  11000001 is 00111110.

We can see that the 1s complement doesn’t change when one bit is flipped in each of the 2 bytes.

You might be interested in
Consider the eight bit signed binary number 1110 0101. Convert it to signed decimal from assuming the signed binary number is re
lapo4ka [179]

Answer:

-26

Explanation:

The given binary number is 1110 0101. Also given that the signed binary number is represented using one's compliment.

We begin by computing the 1s complement representation of 1110 0101 by inverting the bits: 00011010

Converting 00011010 to decimal, it corresponds to 26.

So the 1s complement of the original number is 26. This means that the original number was -26.

7 0
2 years ago
Your southern region is not doing very well. You want to know why, so you ask for a special report showing the numbers for the s
Mila [183]

Answer:

D) Comparative

Explanation:

Comparative report is an analytical approach to report writing, where the aim is to determine the performance or contribution of individual constituents.

6 0
2 years ago
I need help asap please :) I will mark brainliest for whoever gets the right answer! x
Nina [5.8K]

1.) Average

2.) Ascending

Using this would give an average score for each team, when using the Average function, you use scores from many different games to not be biased, and it gives an accurate description of the teams scores and it's a fair way to find where they stand in respect tot he other team.

4 0
2 years ago
A traffic signal system will only operate if it receives an output signal (D=1) This only can occur if: Either (a) signal A is R
kozerog [31]

Answer:

0

Explanation:

4 0
1 year ago
Can some one help me with this?
aliya0001 [1]
Yea sure just give me the question
5 0
2 years ago
Read 2 more answers
Other questions:
  • True or false words spelling and grammar check is always %100
    7·2 answers
  • Zander is beginning to take college courses to prepare for a career in computer science, which is the study of using logic to cr
    5·1 answer
  • Prove that f(n) = 20n3 + 10nlogn + 5 is O(n3)
    12·1 answer
  • Explain how buyers and sellers factor into setting the stock price for a company’s shares.
    13·1 answer
  • Dillard’s wants to learn about its consumers' attitudes toward online purchases. There are numerous studies that are available a
    9·1 answer
  • Write a loop that outputs the numbers in a list named salaries. The outputs should be formatted in a column that is right-justif
    6·1 answer
  • Suppose that, when you arrive at the sale site for $50 Apple laptops (described in the text) at 1:45 A.M., you find more than 2,
    8·1 answer
  • You would like the user of a program to enter a customer’s last name. Write a statement thaUse the variables k, d, and s so that
    5·1 answer
  • Write a method that will receive 2 numbers as parameters and will return a string containing the pattern based on those two numb
    10·1 answer
  • Write a script that inputs a line of encrypted text and a distance value and outputs plaintext using a Caesar cipher. The script
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!