341 and 3640 How many bits are required to store this number?explain How do you find it and show your works.
Integers are stored in using the word memory. This word is equal to 4 bytes or 32 bits.
So, the integers from 0 to can be stored using these 4 bytes or 32 bits memory.
Example:
Integer 1 is expressed as a 32-bit value
1: 00000001 00000000 00000000 00000000
ISSUES:
There are two issues for the above rule,
This does not fit
- for negative numbers
- for very large numbers 2^32 or greater. These large valued numbers cannot be stored in 32-bit of memory.
SOLUTION:
1) In the case of negative numbers, we can clear this issue by sacrificing one bit as the Sign bit to indicate whether it is negative or positive.
- 1 indicates a negative number
- 0 indicates a positive number.
Thus, the integers range from to .
2) In the case of very large integers, we need to use more memory to store the large value, such as two words per integer.
NOTE:
A word is represented as a collection of 32-bits or a collection of 4-bytes.
1) 341
convert 341 to binary value.
so,
thus, the number 341 can be represented as a 32-bit value as follows,
10101010 10000000 00000000 00000000
ANSWER:
This number 341 can be stored using 32-bits of memory.
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images
- 8. Add the following Hexadecimal / Octal numbers: (show work) b. 7CBA16 a. 4A6D16 G8FC16 FBCD16 b. 45648 57628 d. 67218 45328 +arrow_forwardMatch the following counting problems with their answers. The number of different 4- digit PIN numbers. The number of telephone numbers that starts with 912-344- The number of bit strings of length 6 that starts with 0 or starts with 10. The number of bit strings of length 6. 1. 64 2. 48 3. 1000 4. 9999 5. 10000arrow_forwardThe modulus for the field GF(25) is x5+x2+1 and its elements are all five-bit strings. Calculate each of the following and enter your answer in exactly five bits (Example, 01101). 1. 11111 + 00001 2. 00011 x 00011 3. 01100 x 01100arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education