Computer Science: An Overview (12th Edition)
12th Edition
ISBN: 9780133760064
Author: Glenn Brookshear, Dennis Brylow
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 1.6, Problem 5QE
In the following problems, each bit pattern represents a value stored in two’s complement notation. Find the answer to each problem in two’s complement notation by performing the addition process described in the text. Then check your work by translating the problem and your answer into base ten notation.
- a. 0101 + 0010
- b. 0011 + 0001
- c. 0101 + 1010
- d. 1110 + 0011
- e. 1010 + 1110
Expert Solution & Answer
Learn your wayIncludes step-by-step video
schedule06:57
Students have asked these similar questions
3. Perform the following operations involving four-bit 2's complement numbers and indicate
whether arithmetic overflow occurs. Verify your answers by converting to decimal sign-
magnitude representation.
0011
+0100
0101
+0110
0101
+ 1010
1011
+0110
1101
+ 1100
1011
+ 1010
Perform the following additions and subtractions. Assume that all numbers are in 32 bit 2's
complement. For all three numbers in each problem, indicate whether they are negative or
positive, and indicate whether an overflow occurs. SHOW YOUR WORK.
A. 2D A4 45 9B + 78 72 C5 B7
B. 36 0C D4 57 - 4B 70 FE 1A
Convert the following 2's complement numbers to base 10. SHOW YOUR WORK.
C. 0101 1100 10102c12
D. C38E2C16
Consider the following addition problems. Please first convert each decimal number into eight-bit twos-complement notation, perform the addition in twos-complement notation, then convert the results back to decimal numbers. Identify each case in which the answer is incorrect because of overflow.
23+45
23-45
128+128
Chapter 1 Solutions
Computer Science: An Overview (12th Edition)
Ch. 1.1 - What input bit patterns will cause the following...Ch. 1.1 - In the text, we claimed that placing a 1 on the...Ch. 1.1 - Assuming that both inputs to the flip-flop in...Ch. 1.1 - a. If the output of an AND gate is passed through...Ch. 1.1 - Prob. 5QECh. 1.1 - Prob. 6QECh. 1.2 - If the memory cell whose address is 5 contains the...Ch. 1.2 - Prob. 2QECh. 1.2 - How many bits would be in the memory of a computer...Ch. 1.3 - Prob. 1QE
Ch. 1.3 - Prob. 2QECh. 1.3 - Prob. 3QECh. 1.3 - Prob. 4QECh. 1.3 - Prob. 5QECh. 1.3 - Prob. 6QECh. 1.4 - Here is a message encoded in ASCII using 8 bits...Ch. 1.4 - In the ASCII code, what is the relationship...Ch. 1.4 - Prob. 3QECh. 1.4 - Prob. 4QECh. 1.4 - Convert each of the following binary...Ch. 1.4 - Prob. 6QECh. 1.4 - What is the largest numeric value that could be...Ch. 1.4 - An alternative to hexadecimal notation for...Ch. 1.4 - What is an advantage of representing images via...Ch. 1.4 - Prob. 10QECh. 1.5 - Convert each of the following binary...Ch. 1.5 - Convert each of the following base ten...Ch. 1.5 - Convert each of the following binary...Ch. 1.5 - Express the following values in binary notation:...Ch. 1.5 - Perform the following additions in binary...Ch. 1.6 - Convert each of the following twos complement...Ch. 1.6 - Prob. 2QECh. 1.6 - Suppose the following bit patterns represent...Ch. 1.6 - Suppose a machine stores numbers in twos...Ch. 1.6 - In the following problems, each bit pattern...Ch. 1.6 - Prob. 6QECh. 1.6 - Prob. 7QECh. 1.6 - Prob. 8QECh. 1.6 - Prob. 9QECh. 1.6 - Prob. 10QECh. 1.6 - Prob. 11QECh. 1.7 - Prob. 1QECh. 1.7 - Prob. 3QECh. 1.7 - Prob. 4QECh. 1.8 - What makes Python an interpreted programming...Ch. 1.8 - Write Python statements that print the following:...Ch. 1.8 - Write Python statements to make the following...Ch. 1.8 - Write a Python statement that given an existing...Ch. 1.9 - Prob. 1QECh. 1.9 - Prob. 2QECh. 1.9 - Prob. 3QECh. 1.9 - Prob. 4QECh. 1.9 - Prob. 5QECh. 1.9 - Prob. 6QECh. 1.9 - Prob. 7QECh. 1.10 - Prob. 1QECh. 1.10 - Could errors have occurred in a byte from Question...Ch. 1.10 - Prob. 3QECh. 1.10 - Prob. 4QECh. 1.10 - Prob. 5QECh. 1.10 - Prob. 6QECh. 1 - Determine the output of each of the following...Ch. 1 - a. What Boolean operation does the circuit...Ch. 1 - a. If we were to purchase a flip-flop circuit from...Ch. 1 - Assume that both of the inputs in the following...Ch. 1 - The following table represents the addresses and...Ch. 1 - How many cells can be in a computers main memory...Ch. 1 - Prob. 7CRPCh. 1 - Prob. 8CRPCh. 1 - Prob. 9CRPCh. 1 - Prob. 10CRPCh. 1 - Suppose a picture is represented on a display...Ch. 1 - Prob. 12CRPCh. 1 - Prob. 13CRPCh. 1 - If each sector on a magnetic disk contains 1024...Ch. 1 - How many bytes of storage space would be required...Ch. 1 - Prob. 16CRPCh. 1 - Prob. 17CRPCh. 1 - Suppose a typist could type 60 words per minute...Ch. 1 - Prob. 19CRPCh. 1 - Prob. 20CRPCh. 1 - Prob. 21CRPCh. 1 - Prob. 22CRPCh. 1 - Prob. 23CRPCh. 1 - Prob. 24CRPCh. 1 - Prob. 25CRPCh. 1 - Prob. 26CRPCh. 1 - Prob. 27CRPCh. 1 - Prob. 28CRPCh. 1 - Prob. 29CRPCh. 1 - Prob. 30CRPCh. 1 - Prob. 31CRPCh. 1 - Prob. 32CRPCh. 1 - Prob. 33CRPCh. 1 - Prob. 34CRPCh. 1 - Prob. 35CRPCh. 1 - Prob. 36CRPCh. 1 - Prob. 37CRPCh. 1 - Prob. 38CRPCh. 1 - Prob. 39CRPCh. 1 - Prob. 40CRPCh. 1 - Prob. 41CRPCh. 1 - Prob. 42CRPCh. 1 - Prob. 43CRPCh. 1 - Prob. 44CRPCh. 1 - Prob. 45CRPCh. 1 - What would be the hexadecimal representation of...Ch. 1 - Prob. 47CRPCh. 1 - Prob. 48CRPCh. 1 - Prob. 49CRPCh. 1 - Prob. 50CRPCh. 1 - Prob. 51CRPCh. 1 - Prob. 52CRPCh. 1 - Prob. 53CRPCh. 1 - Prob. 54CRPCh. 1 - Prob. 55CRPCh. 1 - Prob. 56CRPCh. 1 - Prob. 57CRPCh. 1 - Prob. 58CRPCh. 1 - Write and test a Python script that, given a...Ch. 1 - Prob. 61CRPCh. 1 - Prob. 2SICh. 1 - Prob. 3SICh. 1 - Prob. 4SICh. 1 - Prob. 5SICh. 1 - Prob. 6SICh. 1 - Prob. 7SI
Additional Engineering Textbook Solutions
Find more solutions based on key concepts
How could introspectionreporting on ones inner thoughtsbe inaccurate? Could I be wrong about what Im thinking? ...
Artificial Intelligence: A Modern Approach
Compare and contrast the break and continue statements.
Java How To Program (Early Objects)
Describe the purpose of a database.
Database Concepts (8th Edition)
Consider the adage Never ask a question for which you do not want the answer. a. Is following that adage ethica...
Experiencing MIS
T F: When a string variable is created in memory, Visual Basic assigns it the initial value 0.
Starting Out With Visual Basic (7th Edition)
Is left recursion a problem for LR parsers?
Concepts of Programming Languages (11th Edition)
Knowledge Booster
Similar questions
- A(n) _____ operation transforms a 0 bit value to 1 and a 1 bit value to 0.arrow_forward___________ occurs when the result of an arithmetic operation exceeds the number of bits available to store it.arrow_forwardData represented in ________ is transmitted accurately between computer equipment from different manufacturers if each computer’s CPU represents real numbers by using an IEEE standard notation.arrow_forward
- The following decimal numbers are shown in sign-magnitude form +9286 and +801. Convert them to signed-10’s complement form and perform the following operations. Note: The MSB bit of signed bit in 10’s complement system is 0 while for negative numbers it is 9. Also the sum is +10267 which requires 5 digits and a sign. (+9286) + (-801) (-9286) + (+801). Please type answer no write by hend.arrow_forwardObtain the 1’s and 2’s complements of the following binary numbers: (a) 00010000 (d) 10101010 (b) 00000000 (e) 10000101 (c) 11011010 (f) 11111111 Represent the unsigned decimal numbers 791 and 658 in BCD, and then show the steps necessary to form their sum. Express the following numbers in decimal: (a) (10110.0101) 2 (b) (16.5) 16 (c) (26.24) 8 (d) (DADA.B) 16 (e) (1010.1101) 2 Add and multiply the following numbers without converting them to decimal. (a)Binary numbers 1011 and 101. (b)Hexadecimal numbers 2E and 34.arrow_forwardRepresent the following numbers in single precision IEEE 754 format: a. -5.2 x 10² b. 6.25 x 10-² The number 11001110₂ It is expressed in 1's Complement notation A. Obtain the number in base 10 that it represents. B. Express the number obtained in the previous paragraph in IEEE 754 single precision formatarrow_forward
- A 4-bit data word (1101)2 is encoded using Hamming ECC for single error correction. Write the corresponding 7-bit codeword that is stored in memory below. Enter your answer herearrow_forwardShow each of the following calculations in 4-bit two's complement notation. In each case, convert the result (in binary) back to a decimal number. (a) (b) (c) (d) - 5+7 - 3 +3 6-4 -2-3 Suppose we use six bits to represent a two's complement binary number. (a) (b) What is the largest number that can be represented?. What is the smallest number that can be represented? How many total base-10 numbers can be represented? ). Suppose we use six bits to represent a two's complement binary number. Perform the following additions, indicating when overflow occurs: (a) 010101 (b) 100000 001101 110011 100110 111111 (c) (d) 010101 101111arrow_forwardPerform the following operations involving four-bit 2’s complement numbers and indicate whether arithmetic overflow occurs. Verify your answers by converting to decimal sign-magnitude representation. (Convert to decimal number to verofy the answers).arrow_forward
- Add 16 and 16 using two's complement representation with 6 bits. Is there an overflow? a. 100000, no overflow b. 100000, overflow c. 010000, overflow d. 010000, no overflowarrow_forwardIf the floating-point number representation on a certain system has a sign bit, a 3-bit exponent and a 4-bit significand: What is the largest positive and the smallest positive number that can be stored on this system if the storage is normalized? (Assume no bits are implied, there is no biasing, exponents use two's complement notation, and exponents of all zeros and all ones are allowed.) What bias should be used in the exponent if we prefer all exponents to be non-negative? Why would you choose this bias?arrow_forwardTwo’s Complement Practice Convert these values to signed magnitude decimal. Each is 8 bits long, in two’s complement form (complement negative values before conversion) Convert the following with the completed step by step on how to get the values: a) 01001111 b) 11100011 c) 00111101 d) 10001010 e) 00110111 f) 43arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning