Question

In: Computer Science

Solve each of the following problems by translating the values into two’s complement notation (using patterns...

Solve each of the following problems by translating the values into two’s complement
notation (using patterns of 5 bits), converting any subtraction problem to an equivalent
addition problem, and performing that addition. Check your work by converting your
answer to base 10 notation. (Watch out for overflow.)

a. 5 + 1

b. 12 – 5

c. 5 – 11

d. 12 + 5

e. 5 – 1

Solutions

Expert Solution


Related Solutions

Solve the following problems using the concepts and notation of set theory and vector spaces: What...
Solve the following problems using the concepts and notation of set theory and vector spaces: What is a Cartesian vector? What is a real vector space? Does the rational numbers fulfill the definition of a field? Define linearly dependency for any set of vectors. Assess the linearly dependency (or not) of the following vectors: u=<2,-1,1>, v=<3,-4,-2>, and w=<5,-10,-8> Define basis
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary...
Binary How is 00001001 (base 2) represented in 8-bit two’s complement notation? Convert 0.3828125 to binary with 4 bits to the right of the binary point. How is 00110100 (base 2) represented in 8-bit one's complement.  
Assume that we are executing the following code on a 32-bit machine using two’s complement arithmetic...
Assume that we are executing the following code on a 32-bit machine using two’s complement arithmetic for signed integers. Which of the following will be printed when the following code is executed (circle those printed, and show work; e.g., how the values are stored): #include <stdio.h> int main() { char x = 0xF;                // x = ________ char y = -1;                 // y = ________ unsigned char z = 0xFF;      // z = 11111111        if (x<z)     printf("performed unsigned compare,...
Translating and Solving Word Equations: Translate then solve the algebraic equation for the following problems: Fourteen...
Translating and Solving Word Equations: Translate then solve the algebraic equation for the following problems: Fourteen less than 5 times a number is 1. Identify the integer. When the sum of a number and 3 is subtracted from 10 the result is 5. Identify the integer. The sum of two consecutive integers is 139. Find the integers. The sum of two even consecutive integers is 46. Find the integers. The sum of three consecutive integers is 57. Find the integers.
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit...
1. What is the two’s complement of: 00110101 2. Carry out the following calculation using 8-bit signed arithmetic (convert to 8-bit binary sequences) and use two’s complement for the negative number, give the result as both an 8-bit binary sequence and in base 10: 127 – 74. 3. What does shifting a binary sequence to left by 3 places correspond to (from the arithmetic standpoint)
Evaluate the following expressions, where two’s complement numbers, A is 11111110 and B is 00000010 and...
Evaluate the following expressions, where two’s complement numbers, A is 11111110 and B is 00000010 and indicate the results. a. A + B b. A – B c. B–A d. –B e. – (-A)
Perform the following calculation in a 6-bit two’s complement system. Show your work. Indicate at the...
Perform the following calculation in a 6-bit two’s complement system. Show your work. Indicate at the end if there will be overflow/underflow or not and why. 1810 – 1010
Show decimal values below in two complement binary notation with 6 bits. a) 18 b) -12
Show decimal values below in two complement binary notation with 6 bits. a) 18 b) -12
Find the decimal equivalents for the following 8-bit two’s complement numbers. a. 0010 0100 Decimal Equivalent...
Find the decimal equivalents for the following 8-bit two’s complement numbers. a. 0010 0100 Decimal Equivalent ___________ b. 1010 1001 Decimal Equivalent ___________ c. 1100 0011 Decimal Equivalent ___________ d. 0101 0101 Decimal Equivalent ___________
Sample Problems – Floating Point Notation and Using Registers For Problems # 1 – 5 Illustrate...
Sample Problems – Floating Point Notation and Using Registers For Problems # 1 – 5 Illustrate the value using floating point notation setting the precision of the mantissa to four (4). Truncate values as required. - 3,567 26,426 .44444 32.0711 .00003 For problems # 6 -10 solve the equations using binary values in signed integer register ‘R’ of size four (4). Check your work to verify if there is an “overflow error”. 2+3=? 2+(-3)=? 7+5=? -8+(-7)=? -5+(-3)=? For problems #...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT