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
antoniya [11.8K]
3 years ago
11

Write the 8-bit signed-magnitude, two's complement, and ones' complement representations for each decimal number: +25, + 120, +

82, -42, -111.
Computers and Technology
1 answer:
pshichka [43]3 years ago
6 0

Answer:

Let's convert the decimals into signed 8-bit binary numbers.

As we need to find the 8-bit magnitude, so write the powers at each bit.

      <u>Sign -bit</u> <u>64</u> <u>32</u> <u>16</u> <u>8</u> <u>4</u> <u>2</u> <u>1</u>

+25 - 0 0 0 1 1 0 0 1

+120- 0 1 1 1 1 0 0 0

+82 - 0 1 0 1 0 0 1       0

-42 - 1 0 1 0 1 0 1 0

-111 - 1 1 1 0 1 1 1 1

One’s Complements:  

+25 (00011001) – 11100110

+120(01111000) - 10000111

+82(01010010) - 10101101

-42(10101010) - 01010101

-111(11101111)- 00010000

Two’s Complements:  

+25 (00011001) – 11100110+1 = 11100111

+120(01111000) – 10000111+1 = 10001000

+82(01010010) – 10101101+1= 10101110

-42(10101010) – 01010101+1= 01010110

-111(11101111)- 00010000+1= 00010001

Explanation:

To find the 8-bit signed magnitude follow this process:

For +120

  • put 0 at Sign-bit as there is plus sign before 120.
  • Put 1 at the largest power of 2 near to 120 and less than 120, so put 1 at 64.
  • Subtract 64 from 120, i.e. 120-64 = 56.
  • Then put 1 at 32, as it is the nearest power of 2 of 56. Then 56-32=24.
  • Then put 1 at 16 and 24-16 = 8.
  • Now put 1 at 8. 8-8 = 0, so put 0 at all rest places.

To find one’s complement of a number 00011001, find 11111111 – 00011001 or put 0 in place each 1 and 1 in place of each 0., i.e., 11100110.

Now to find Two’s complement of a number, just do binary addition of the number with 1.

You might be interested in
Lol fortnite really going UwU and anime
svp [43]

Answer:

epic

Explanation:

7 0
3 years ago
Read 2 more answers
Why does the randomNumber function only use whole numbers between 0 and 1 (basically, 0 and 1)?
Bogdan [553]

Answer:

The randomNumber function only uses whole numbers between 0 and 1 because those are the unspecified minimum and maximums to get random numbers. If you want a larger range, <em>just specify the minimum and maximum.</em>

Explanation:

<em>Example code on how to specify a larger range, replace max and min with your maximum and minimum integers.</em>

function getRandomArbitrary(min, max) {

 return Math.random() * (max - min) + min;

}

6 0
3 years ago
Why is it so important to have employees who can critically think?
kiruha [24]
Its important to have employees who can critically think because if they have to make a crucial decision for the job or project he or she is working on that best suits the situation. 
6 0
3 years ago
Read 2 more answers
It is better to know the main components of all computer programming languages than to memorize the rules for all of the languag
Jlenok [28]

Answer: true

Explanation:

7 0
3 years ago
Read 2 more answers
Raul looks at different technologies that will help him do his job. What part of the process is this?
umka2103 [35]

This process is known as analyzing options. When Raul looks over different options and/or technologies that will help him do his job, he is going over the different options and seeing which option is best for him. When deciding which is best for him, he will need to consider: what Raul needs it to complete, how each technology option compares to the next, the price point and all of the functions the technology can do. After he figures out what it can do compared to what purpose he needs it to serve, he can determine the best option for himself.

5 0
4 years ago
Other questions:
  • In the United States, everyone is guaranteed work true or false
    13·1 answer
  • 14.18 Lab 5d - Nested Looping Write a program that:
    10·1 answer
  • What data unit is addressed based on the IP address of the recipient?
    8·1 answer
  • To use a macro, a user must first <br> ____ a macro and then <br> ____the macro.
    8·1 answer
  • The "great big secret" Ohanian talks about is the idea that:
    15·1 answer
  • All the following are the basis of the World Wide Web except:
    14·2 answers
  • PLEASE HELP! 100 POINTS!
    7·1 answer
  • You are critiquing a logo design that one of your coworkers proposed. Your sense is that the individual elements of the design a
    10·1 answer
  • What is the dark web and what is the .onion domain
    15·2 answers
  • What is another term used for next generation firewalls
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!