-(-13) P binary using signed. 2's complement representation
Perform the arithmetic operations (+42) + (-13) and (-42)
negative .
Consider the balloon​

Answers

Answer 1

Answer:

00011101

00011101

Explanation:

Given the following arithmetic operations

a)   (+42) + (-13)

b)   (-42) - (-13)

From (a):

We need to convert +42 into binary, so we get = 00101010

Now for +13, when it is converted into binary, we get = 00001101

But, here, the 13 is negative. So, here is what we will do, we will have to take the two compliment of the binary. After doing that, we get = 111110011

+ 42     →     00101010

- 13      →     1 1 1 10011

+29             000 11101  

Thus, the arithmetic operation after we use 2's complement is 00011101

b)

Here both 42 and 13 are negative. Using two complement representation

-42 is first converted to binary as 00101010, Then → 11010101 + 1 = 11010110

-13 is converted to binary as 00001101 → 11110010 = 11110011

In between, a negative sign exists, so we take another 2's complement.

i.e.

11110011 → 00001100 + 1 = 00001101

- 42 →     1 1 01 0110

+13  →     00001 101

-29         1 1 1 00011

since there is no carry, we take two's complements for the result as:

1 1 1 00011 →00011100 + 1 = 00011101


Related Questions

Other Questions
Smoking cessation, diet and exercise are three areas of _______________ that healthcare providers must address with patients. * What effect does noise have on different types of signals?A. It distorts digital signals, making them unreliable.B. It distorts analog signals, making them unreliable.C. Noise has no effect on either analog or digital signals.D. Noise prevents the transmission of both analog and digitalsignals. different opinions concerning religion, concerning government, and many other points . . . have, in turn, divided mankind into parties . . . and rendered them much more disposed to [anger] and oppress each other than to co-operate for their common good.James Madison, Federalist Paper 10What is James Madison describing? Which characteristic best describes Joseph's father?ACaring, kindB.Adventurous, optimisticC.Disrespectful, hostile 3. You and your friends were playing basketball last week. You were short aplayer, so your younger sister joined the game. She crushed it scoring 12shots for 28 points.How many 2 point and 3 point baskets did she score? Find the indicated probability. In one town, 71% of adults have health insurance. What is the probability that 4 adults selected at random from the town all have health insurance Divide. Write the quotient in lowest terms.1 1/4 divided by 1 2/5 Whoever answers first and accurately will mark brainliest! The largest group of elites in Latin America were known asmestizos.creoles.Iberian-Europeans.peninsulares. which comparison is true?62.1 >638 625 What contrasts in tone does the writer of this story provide for the reader?O Quoting Eichmann and then quoting Schachter, who had drastically different viewsO Telling readers the title of the musical piece so they can hear the tune as they readO Reminding readers about the history of the World War Il in this modern news articleOMentioning the need for therapy in times of trouble and fear for all kinds of people Write down the first five terms of the sequence which has the n th term Use this excerpt from the U.S. Declaration of Independence to answer the following question:"We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among theseare Life, Liberty and the pursuit of Happiness. That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent ofthe governed, That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute newGovernment, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness."--Public DomainIn what way does this excerpt illustrate that the American break with Britain in 1776 was justified by using ideas rooted in the Enlightenment? If you can't commit to the maintenance and space requirements for home fitness equipment, you should join a fitness center instead.Please select the best answer from the choices provided.TF How are each of the following percent applications different, and how are they the same? Solve each problem, and then compare your solution process for each problem. a. Silvio earns 10% for each car sale he makes while working at a used car dealership. If he sells a used car for $2,000, what is his commission? b. Tus family stayed at a hotel for 10 nights on their vacation. The hotel charged a 10% room tax, per night. How much did they pay in room taxes if the room cost $200 per night? c. Eric bought a new computer and printer online. He had to pay 10% in shipping fees. The items totaled $2,000. How much did the shipping cost? d. Selena had her wedding rehearsal dinner at a restaurant. The restaurants policy is that gratuity is included in the bill for large parties. Her father said the food and service were exceptional, so he wanted to leave an extra 10% tip on the total amount of the bill. If the dinner bill totaled $2,000, how much money did her father leave as the extra tip? What colors are not found in the light spectrum What is actually cycled in a web of organisms? 1. Emma tiene cinco aos y su hermana tiene tres. Emma es________________su hermana2. Emma tiene cinco anos y su hermana tiene tres. Emma es__________su hermana.3. Todos los alumnos son inteligentes, pero Jos es un poco msInteligente Jos es__________3_ambicioso___la clase.4. Todos los alumnos son inteligentes, pero Jose es ______un poco msinteligente Joses_ambicioso____la clase.5. Todos los alumnos son inteligentes, pero Jos es un poco msInteligente Jos es_________ambicioso __________5 la clase. Why did the Catholic Church send people to the Americas?Mark this and returnSave and ExitNextPrevious Activity Which term best describes the graph of y = x - 1 A. Increasing B. Decreasing C. Constant D. Positive help me with this please