1answer.
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
masya89 [10]
3 years ago
8

Find the word-length 2's complement representation of each of the following decimal numbers:a. 845b. 15000c. 100d. -923

Computers and Technology
2 answers:
Norma-Jean [14]3 years ago
8 0

Answer:

Using 32bits.

a:0000 0000 0000 0000 0000 0011 0100 1101

b:0000 0000 0000 0000 0011 1010 1001 1000

c:0000 0000 0000 0000 0000 0000 0110 0100

d:1111 1111 1111 1111 1111 1100 0110 0101

Explanation:

Conversion to Two's Complement

The 2's complement system is commonly used for signed integer representation on computers.  The 2's complement operation is done by inverting the binary digits of an integer and then adding one.

For the purpose of explanation lets make use of a negative number for clarity. In this case lets use -923.

Note that the use of 32bits for this question is objective, you can use a range of bits for this operation. this question can go as low as 16bits and as high as 64bits depending on application and specification.

For Example:

we have -923, and want to represent it in 2's complement, you take the binary representation of positive 923:

0000 0000 0000 0000 0000 0011 1001 1011

Invert the digits.

1111 1111 1111 1111 1111 1100 0110 0100

And add one.

1111 1111 1111 1111 1111 1100 0110 0100 + 1

=

1111 1111 1111 1111 1111 1100 0110 0101

(The Binary 2's complement representation of -923)

tino4ka555 [31]3 years ago
3 0

Answer:

(a) 845 = 0000 0011 0100 1101

(b) 1500 = 0011 1010 1001 1000

(c) 100 = 0000 0000 0110 0100

(d) -923 = 1111 1100 0110 0101

Explanation:

<u>NOTES:</u>

<em>First Note: The question requests that the numbers be represented in word-length. That means they should be represented in 16bits (a word is 2 bytes).</em>

<em>Second Note: To convert a number to its 2's complement representation,</em>

<em>(i) if the number is positive, the usual conversion to binary will suffice. You might just need to add zero at the beginning of the sequence of bits to ensure that the leftmost bit is a zero(0).</em>

<em>(ii) if the number is negative, then;</em>

<em>=> convert the magnitude of the number to its binary</em>

<em>=> add zeros to the beginning of the sequence of binary until the sequence has the specified length</em>

<em>=> flip each bit in the sequence and add 1 to the result.</em>

<u>SOLUTION:</u>

Applying the rules in the notes above, lets convert the numbers.

(a) 845 => The number is positive, conversion to its binary will suffice

<u>2  |  845</u>

<u>2  |  422 R 1</u>

<u>2  |  211 R 0</u>

<u>2  |  105 R 1</u>

<u>2  |  52 R 1</u>

<u>2  |  26 R 0</u>

<u>2  |  13 R 0</u>

<u>2  |  6 R 1</u>

<u>2  |  3 R 0</u>

<u>2  |  1 R 1</u>

<u>2  |  0 R 1</u>

Writing the remainders upwards, we have

845 = 1101001101

Pad with zeros to convert it to its word-length representation.

845 = 0000 0011 0100 1101

(b) 15000 => The number is also positive, so following the same step as above,

15000 = 11101010011000

Pad with zeros to convert it to its word-length representation.

15000 = 0011 1010 1001 1000

(c) 100 => The number is also positive, so following the same step as above,

100 = 1100100

Pad with zeros to convert it to its word-length representation.

100 =  0000 0000 0110 0100

(d) -923 => The number is negative;

-->  first convert its magnitude (923) to binary

923 = 1110011011

--> Pad with zeros to convert it to its word-length representation.

923 =  0000 0011 1001 1011

--> Flip the bits

0000 0011 1001 1011 = 1111 1100 0110 0100

--> Add 1 to the result above

1111 1100 0110 0100 + 1 = 1111 1100 0110 0101

Therefore;

-923 = 1111 1100 0110 0101

You might be interested in
You make an online purchase of a hooded sweatshirt with the logo of the Dallas Cowboys. The next time you log on, your screen ha
Novosadov [1.4K]

Answer:

c. data mining

Explanation:

Data mining can be defined as the term which is used for knowing the user preferences by using their previous search queries.  

Nowadays Data mining is being used by many companies to predict and show them the appropriate ads in front of them on the basis of their previous search queries.

so, according to the scenario, the most appropriate answer is option C.

8 0
3 years ago
Software that people commonly use in the workplace to make their lives easier is called?
larisa86 [58]
Its B beacause computer has made our lives very easier
7 0
3 years ago
Read 2 more answers
The human resource department at Mega Corporation is overwhelmed with a constant flood of résumés submitted through its website
ad-work [718]

Answer: The answer to the question, How might an applicant-tracking system help the department; is pretty simple. What this question really asks for is to explain the innovation of the Applicant Tracking System (commonly abbreviated as ATS). So the foremost thing to do is to describe the Applicant tracking system. Application tracking tracking systems (ATS from hereon), are digital systems that are designed to make the recruitment process for employers way less tedious than it normally should be. Imagine you had to hire for a huge company like Microsoft that could receive tens of thousands of applications everyday for a specific role. It would be pretty tedious to determine the most qualified for the role if you had to go through all the applications yourself. Even if you had a team of people, it would still be stressful and error prone because, as humans we can make mistakes and slip in the wrong file for an interview or even misplace an application or mix something up somewhere. Now imagine if you didn't have to do all that because a computer program can do it with more precision and speed than you and your whole team are capable of. That would be splendid, right? Well, you don't have to. Aanya in the question above does not have to bother the department with the tedious work. The ATS will take care of a good chunk of the work. Here's how it works. The ATS is comprised of bots that are programmed to scan through applications and arrange them in order of qualification and matching of requirements. A bot is software application that's preset to run programs automatically, usually over the internet. So when people apply on Mega Corporation's platform, the applications are sent through to the scanning of the ATS. Now the requirements for the job role will be filled in by the department ATS so it knows what it's looking out for. For example, if one of the requirements for the job is a Master's degree in Psychology, applications without Master's degrees will be grouped separately from those that have. Same thing for other criteria like years of experience, Age, etcetera. The ATS receives all these applications and groups them such that, at the deadline of the application process, the ATS would have screened a good portion of the applicants and only the most qualified would be left for the next stage of screening. This is how the Applicant Tracking System would help the Human Resource department at Mega Corporation.

7 0
3 years ago
The act of engaging in crime through the use of a computer or similar type of device is called:
marin [14]
I don’t have an explanation for why it is called this, because really the name of it is in its definition. The two words this sentence describes are cybercrime and computer crime. They are both the same thing.
8 0
3 years ago
What is cloud computing,the wireless revolution,and IoT
Crazy boy [7]

Cloud Computing in IoT works as part of a collaboration and is used to store IoT data. The Cloud is a centralised server containing computer resources that can be accessed whenever required. Cloud Computing is an easy travel method for the large data packages generated by the IoT through the Internet.

7 0
2 years ago
Other questions:
  • Which of the following rules should be used to keep the appropriate distance between your vehicle and the vehicle in front of yo
    10·2 answers
  • I play Among us :) hbu
    7·2 answers
  • What are the overheads associated with recursive algorithms? [
    9·1 answer
  • En su cuaderno o carpeta de trabajo realice la conversión del sistema de numeración binario a octal según este ejemplo de manera
    13·1 answer
  • SUMMING THE TRIPLES OF THE EVEN INTEGERS FROM 2 THROUGH 10) Starting with a list containing 1 through 10, use filter, map and su
    15·1 answer
  • Identify the final stage of the object found in the image in the given text
    9·1 answer
  • I need somebody to help me with this question I’ll give points!<br> Please help no funny business
    14·1 answer
  • This is gonna be very long but I have no idea what to do, I'm confused.
    6·1 answer
  • (Java) Write a program that accepts a number of minutes and converts it both to hours and days. For example, 6000 minutes is 100
    10·1 answer
  • Complete each of the following sentences by
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!