Computer Science: An Overview (12th Edition)
Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
Expert Solution & Answer
Book Icon
Chapter 2.4, Problem 10QE

Explanation of Solution

Determine the addition of two binary numbers if the pattern represents values stored in two’s complement notation:

  • In two’s complement system, the leftmost bit of pattern represents the sign of the value. Negative values are indicated by the binary number 1, while positive values are indicated by the binary number 0.
  • Similar to the binary addition, the addition in two’s complement system is done by adding both the numbers, but the carry is truncated in this case so that the number of bits in all the patterns including the answer is same.
  • The addition of 01101010 and 11001100 is:

    0110101011001100_100110110

  • Since, the number of bits in answer is 9 and number of bits in input values is 8, so the carry part is truncated from the sum and the result is reduced to 00110110.

Therefore, the sum of 01101010 and 11001100 is “00110110”.

Determine the addition of two binary numbers if the pattern represents values stored in floating-point notation:

  • Floating-point notation is the method in which numbers are represented as decimal fractions and exponents.
  • In floating point notation, the number consists of only 8 bits. First bit from the left is assigned as sign bit, next three bits are assigned as exponents and the last four bits are assigned as mantissa. Negative values are indicated by the binary number 1, while positive values are indicated by the binary number 0.
  • The procedure to perform addition in floating-point notation is:
    • Convert both the binary numbers in floating point numbers.
    • Add both the numbers.
    • Convert the result into binary notation.
  • Decode the bit pattern 01101010 in floating point notation. The exponent field is 110 and it represents 2 according to the excess notation system for 3 bits.
    • Extract the mantissa to obtain .1010
    • Move the radix 2 bit to the right, since the exponent represents +2. So, the value is 10.10.
    • Convert 10.10 to base 10 representations.
      • First consider the integer part 10,

        1×21+0×20=2+0=2

      • Now consider the fractional part .10,

        1×12+0×122=12+0=12

    • Combine integer and fractional part results to obtain the base 10 value of 10.10. The value is 212.
  • Decode the bit pattern 11001100 in floating point notation. The exponent field is 100 and it represents 0 according to the excess notation system for 3 bits.
    • Extract the mantissa to obtain .1100
    • The radix will not move in any direction since the exponent represents 0. So, the value is .1100.
    • Convert .1100 to base 10 representations.

      1×12+1×122+0×123+0×124=12+14+0+0=34

    • The base 10 value is 34

Blurred answer
Students have asked these similar questions
Please solve and show all work. Thank you. What is 5ED4 - 07A4 when these values represent unsigned 16-bit hexadecimal numbers? The result should be written in hexadecimal. Show your work.   What decimal number does the bit pattern (0C000000)16 represent if it is a floating-point number? Use the IEEE 754 standard.   Write down the binary representation of the decimal number 63.25, assuming the IEEE 754 double precision format.   What are the corresponding MIPS instructions to this C code: C code:       float f2c (float fahr) {  return ((5.0/9.0)*(fahr - 32.0));} if fahr in $f10, result in $f2, literals in global memory space.
Imagine that there was a IEEE standard for 7-bit floating-point numbers with 3 bits for the exponent and 3 bits for the fraction and bias equal to 3. What would be the exact value in decimal of the bitstring under such a format? Your Answer: Answer 1110101
How many Hamming Code Bits are needed for a 64 bit number? for a 128 bit number? What is the Hamming Distance for the following 256 bit numbers? FEDCBA98765432100123456789ABCDEF FEDCAB9875643210F2134567890BCDEF If it was in binary?

Chapter 2 Solutions

Computer Science: An Overview (12th Edition)

Ch. 2.3 - Prob. 1QECh. 2.3 - Suppose the Vole memory cells at addresses 0xB0 to...Ch. 2.3 - Suppose the Vole memory cells at addresses 0xA4 to...Ch. 2.3 - Suppose the Vole memory cells at addresses 0xF0 to...Ch. 2.4 - Prob. 1QECh. 2.4 - Prob. 2QECh. 2.4 - Prob. 3QECh. 2.4 - a. Suppose you XOR the first 2 bits of a string of...Ch. 2.4 - Prob. 5QECh. 2.4 - Prob. 6QECh. 2.4 - Prob. 7QECh. 2.4 - Prob. 8QECh. 2.4 - Prob. 9QECh. 2.4 - Prob. 10QECh. 2.4 - Using Vole machine language (Appendix C), write a...Ch. 2.4 - Prob. 12QECh. 2.5 - Prob. 1QECh. 2.5 - Prob. 2QECh. 2.5 - Prob. 3QECh. 2.6 - The hypotenuse example script truncates the sides...Ch. 2.6 - Prob. 2QECh. 2.6 - The Python built-in function str () will convert a...Ch. 2.6 - Use the Python built-in bin () to write a script...Ch. 2.6 - Prob. 6QECh. 2.7 - Referring back to Questions 3 of Section 2.3, if...Ch. 2.7 - Prob. 2QECh. 2.7 - Suppose there were two central processing units...Ch. 2 - a. In what way are general-purpose registers and...Ch. 2 - Answer the following questions in Vole machine...Ch. 2 - Prob. 3CRPCh. 2 - What is the value of the program counter in the...Ch. 2 - Prob. 5CRPCh. 2 - Prob. 6CRPCh. 2 - Prob. 7CRPCh. 2 - Suppose a machine language is designed with an...Ch. 2 - Translate the following instructions from English...Ch. 2 - Rewrite the program in Figure 2.7 assuming that...Ch. 2 - 11. Classify each of the following instructions...Ch. 2 - Prob. 12CRPCh. 2 - Prob. 13CRPCh. 2 - Suppose the memory cells at addresses 0x00 through...Ch. 2 - Suppose the memory cells at addresses 0x00 through...Ch. 2 - Suppose the memory cells at addresses 0x00 through...Ch. 2 - Suppose the memory cells at addresses 0x00 through...Ch. 2 - Prob. 18CRPCh. 2 - If the Vole executes an instruction every...Ch. 2 - Prob. 20CRPCh. 2 - Prob. 21CRPCh. 2 - Prob. 22CRPCh. 2 - Prob. 23CRPCh. 2 - Write a program in Vole to compute the sum of...Ch. 2 - Prob. 26CRPCh. 2 - Prob. 27CRPCh. 2 - Suppose the following program, written in Vole, is...Ch. 2 - Summarize the steps involved when the Vole...Ch. 2 - Summarize the steps involved when the Vole...Ch. 2 - Summarize the steps involved when the Vole...Ch. 2 - Suppose the registers 0x4 and 0x5 in the Vole...Ch. 2 - Prob. 33CRPCh. 2 - Prob. 34CRPCh. 2 - Prob. 35CRPCh. 2 - Prob. 36CRPCh. 2 - Prob. 37CRPCh. 2 - Prob. 38CRPCh. 2 - Prob. 39CRPCh. 2 - Prob. 40CRPCh. 2 - Prob. 41CRPCh. 2 - Prob. 42CRPCh. 2 - a. What single instruction in the Vole machine...Ch. 2 - Write a Vole program that reverses the contents of...Ch. 2 - Write a Vole program that subtracts the value...Ch. 2 - Prob. 46CRPCh. 2 - Suppose a person is typing forty words per minute...Ch. 2 - Prob. 48CRPCh. 2 - Suppose the Vole communicates with a printer using...Ch. 2 - Write a Vole program that places 0s in all the...Ch. 2 - Prob. 51CRPCh. 2 - Prob. 52CRPCh. 2 - Suppose you are given 32 processors, each capable...Ch. 2 - Prob. 54CRPCh. 2 - Prob. 55CRPCh. 2 - Describe how the average of a collection of...Ch. 2 - Write and test a Python script that reads in a...Ch. 2 - Write and test a Python script that reads in a...Ch. 2 - Prob. 59CRPCh. 2 - Suppose a computer manufacturer develops a new...Ch. 2 - Prob. 2SICh. 2 - Prob. 3SICh. 2 - Prob. 4SICh. 2 - Suppose a manufacturer produces a computer chip...Ch. 2 - Prob. 6SICh. 2 - Prob. 7SICh. 2 - Prob. 8SI
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
  • Text book image
    Systems Architecture
    Computer Science
    ISBN:9781305080195
    Author:Stephen D. Burd
    Publisher:Cengage Learning
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning