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
Akimi4 [234]
3 years ago
3

6. What is the largest base 10 number that 4 bits can represent?

Computers and Technology
1 answer:
sergeinik [125]3 years ago
6 0

Answer: Figure 2.12 A four-bit binary number (called a nibble). Sixteen is the biggest decimal number we can represent in 4 bits.

Explanation:

Now we know more than we ever wanted to know about how often to store numbers in order to digitally represent a signal. But surely speed isn’t the only thing that matters. What about size? In this section, we’ll tell you something about how big those numbers are and what they "look" like.

All digital information is stored as binary numbers. A binary number is simply a way of representing our regular old numbers as a list, or sequence, of zeros and ones. This is also called a base-2 representation.

In order to explain things in base 2, let’s think for a minute about those ordinary numbers that we use. You know that we use a decimal representation of numbers. This means that we write numbers as finite sequences whose symbols are taken from a collection of ten symbols: our digits 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9.

A number is really a shorthand for an arithmetic expression. For example:

Now we bet you can see a pattern here. For every place in the number, we just multiply by a higher power of ten. Representing a number in base-8, say (which is called an octal representation), would mean that we would only use eight distinct symbols, and multiply those by powers of 8 (instead of powers of 10). For example (in base 8), the number 2,051 means:

There is even hexadecimal notation in which we work in base 16, so we need 16 symbols. These are our usual 0 through 9, augmented by A, B, C, D, E, and F (counting for 10 through 15). So, in base 16 we might write:

But back to binary: this is what we use for digital (that is, computer) representations. With only two symbols, 0 and 1, numbers look like this:

Each of the places is called a bit for (Binary digIT). The leftmost bit is called the most significant bit (MSB), and the rightmost is the least significant bit (because the digit in the leftmost position, the highest power of 2, makes the most significant contribution to the total value represented by the number, while the rightmost makes the least significant contribution). If the digit at a given bit is equal to 1, we say it is set. We also label the bits by what power of 2 they represent.

How many different numbers can we represent with 4 bits? There are sixteen such combinations, and here they are, along with their octal, decimal, and hexadecimal counterparts:

Binary Octal Decimal Hexadecimal

0000 00 00 00

0001 01 01 01

0010 02 02 02

0011 03 03 03

0100 04 04 04

0101 05 05 05

0110 06 06 06

0111 07 07 07

1000 10 08 08

1001 11 09 09

1010 12 10 0A

1011 13 11 0B

1100 14 12 0C

1101 15 13 0D

1110 16 14 0E

1111 17 15 0F

Table 2.1  Number base chart.

Some mathematicians and philosophers argue that the reason we use base 10 is that we have ten fingers (digits)—those extraterrestrials we met in Chapter 1 who hear light might also have an extra finger or toe (or sqlurmphragk or something), and to them the millennial year might be the year 1559 (in base 11)! Boy, that will just shock them right out of their fxrmmp!qts!

What’s important to keep in mind is that it doesn’t much matter which system we use; they’re all pretty much equivalent (1010 base 2 = 10 base 10 = 12 base 8 = A base 16, and so on). We pick numeric bases for convenience: binary systems are useful for switches and logical systems, and computers are essentially composed of lots of switches.

Figure 2.12  A four-bit binary number (called a nibble). Sixteen is the biggest decimal number we can represent in 4 bits.

Numbering Those Bits

Consider the binary number 0101 from Figure 2.12. It has 4 bits, numbered 0 to 3 (computers generally count from 0 instead of 1). The rightmost bit (bit zero, the LSB) is the "ones" bit. If it is set (equal to 1), we add 1 to our number. The next bit is the "twos" bit, and if set adds 2 to our number. Next comes the "fours" bit, and finally the "eights" bit, which, when set, add 4 and 8 to our number, respectively. So another way of thinking of the binary number 0101 would be to say that we have zero eights, one four, zero twos, and one 1.

Bit number 2Bit number Bit values

0 20 1

1 21 2

2 22 4

3 23 8

Table 2.2  Bits and their values. Note that every bit in base 2 is the next power of 2. More generally, every place in a base-n system is n raised to that place number.

Don’t worry about remembering the value of each bit. There’s a simple trick: to find the value of a bit, just raise it to its bit number (and remember to start counting at 0!). What would be the value of bit 4 in a five-bit number? If you get confused about this concept, just remember that this is simply what you learned in grade school with base 10 (the 1s column, the 10s column, the 100s column, and so on).

You might be interested in
The process of finding the largest and smallest numbers is used frequently in computer applications. Write a C++ program that us
WINSTONCH [101]

Answer:

The program to this question can be given as:

Program:

#include<iostream>  //header file

using namespace std;

int main()    //main method

{

int x[10],i,largest = 0,second_largest=0,n;  //variable

cout << "Enter Number of elements :";  //message

cin>>n;

cout << "Insert array elements :";  //message

for(i=0;i<n;i++)  //insert elements in array

{

cin >>x[i];

}

//Finding Largest element  

for(i=0;i<n;i++)

{

if (x[i]>largest)

{

largest = x[i];

}

}

//finding second largset element

for(i=0;i<n;i++)

{

if (x[i]>second_largest)

{

   if(x[i]==largest)

   {

   continue;   //Ignoring largest in order to get second largest

   }

   second_largest=x[i];

}

}

//print value

cout <<"Largest Number:"<<largest<<endl;

cout <<"Second Largest Number:"<<second_largest;

return 0;

}

Output:

Enter Number of elements :5

Insert array elements :33

45

75

87

23

Largest Number:87

Second Largest Number:75

Explanation:

In the above program firstly we define the header file then we define the main method in the main method we define the array and other variables. We first input the number for the size of the array. Then we insert array elements after inserting array elements we search the largest number and the second largest number in the array. To search the largest number in the array we use the loop. To search the first largest number we define a condition that array is greater than the largest number and store the value into the largest variable. Then we check the second largest number in the array for this we use two conditions that are array is greater than the second largest number in this we use another condition that is array is equal to the largest number. If the inner condition is true then it will move forward and end of an inner condition. In the outer condition, the value will be stored on the second_largest variable all the conditions will be done inner the loop. At the last we print values.

3 0
3 years ago
Entering the formula =sum(c5:c18) in cell c19 will result in which of the following?
antiseptic1488 [7]
If you mean Excel formula sum(c5:c18) in cell c19 will show <span>c. the total of cells c5 to c18 will appear in cell c19. It's simple operation that simplyfies counting different values.</span>
5 0
3 years ago
57. Tammy's income for the month of January was $2,475. Her fixed expenses during that same
Roman55 [17]

Answer:

57. Tammy's income for the month of January was $2,475. Her fixed expenses during that same

month were $750, and her variable expenses totaled $1,750. What was Tammy's net cash flow

during the month of January? Be sure to indicate whether she had a surplus or a deficit.

Explanation:

no clue

5 0
3 years ago
When installing EMT conduit that will be exposed to wet conditions, _______ fittings should be used.
Tasya [4]
Its a compression type fitting PENN FOS TEST
5 0
3 years ago
The Coffee Counter charges ​$7.00 per pound for Kenyan French Roast coffee and ​$11.00 per pound for Sumatran coffee. How much o
ss7ja [257]

Answer:

jimmmy

Explanation:

3 0
3 years ago
Other questions:
  • Which is the most likely problem with a static layout?
    5·2 answers
  • Fill in the blanks.
    6·2 answers
  • You created a vm and installed windows server 2008 r2 over the network, using pxe boot. when you start the vm, it doesn't attemp
    7·1 answer
  • User authentication is a procedure that allows communicating parties to verify that the contents of a received message have not
    12·1 answer
  • HELP ME IF YOU KNOW HOW TO CODE ON PYTHON <br> ITS FOR A TEST DUE IN A FEW MINUTES
    12·1 answer
  • What are the steps to creating a blank database? Use the drop-down menus to complete them.
    9·1 answer
  • Select the correct answer.
    9·1 answer
  • I need help with this question!
    11·1 answer
  • Which 4 elements are commonly contained in a master page?
    11·1 answer
  • Create an application named SalesTransactionDemo that declares several SalesTransaction objects and displays their values and th
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!