What is 345 as an unsigned decimal number? It is 34 with subscript of 5. Not 345!
a. 8
b. 23
c. 34
d. 51
e. None of the above
What is 345 as an unsigned decimal number? It is 34 with subscript of 5. Not...
What is the binary number 0111 1011 as unsigned decimal number? a. 78 b. 49 c. 123 d. 173 e. None of the above
(3 pts) Consider an unsigned fixed point decimal (Base10) representation with 8 digits, 5 to the left of the decimal point and 3 to the right. a. What is the range of the expressible numbers? b. What is the precision? c. What is the error? ______________________________________________________________________________ (3 pts) Convert this unsigned base 2 number, 1001 10112, to each base given below (Note: the space in the binary string is purely for visual convenience) Show your work. Using...
1. For the following number of bits, what is the range of unsigned and signed decimal values that can be represented? a. 12-bits b. 10-bits
BNF 5. Write a BNF grammar that accepts an unsigned decimal number. This number can contain a single decimal point, if it does it cannot be the first character in the string, nor may it be the last.
Write a BNF grammar that accepts an unsigned decimal number.
This number can contain a single decimal point, if it does it
cannot be the first character in the string, nor may it be the
last.
5. Write a BNF grammar that accepts an unsigned decimal number. This number can contain a single decimal point, if it does it cannot be the first character in the string, nor may it be the last. [4 marks]
5. Write a BNF grammar...
1. a) Perform the following binary subtractions of unsigned binary numbers. Convert your answer to decimal. i) 101001012 - 01001001, ii) 110110102 - 100100112 b) Repeat the calculations above but for when the binary numbers are in two's complement form. Comment on the results of the two methods used, noting and discrepancies. 2. Find the sums of the following unsigned hexadecimal numbers. Indicate whether or not the sum overflows an equivalent 8-bit binary result. a) 1116 +2216 b) 1716 +3516...
What decimal value does the 8-bit binary number 10110111 have if: a) it is interpreted as an unsigned number? b) it is on a computer using signed-magnitude representation? c) it is on a computer using one’s complement representation? d) it is on a computer using two’s complement representation? e) it is on a computer using excess-127 representation?
10.11 (Left Shifting Integers ) Left shifting an unsigned int by
1 bit is equivalent to multiplying the value by 2. Write function
power2 that takes two integer arguments number and pow and
calculates number * 2pow. You should declare pow as an unsigned
integer , but remember that the result may be a negative value .
Use the shift operator to calculate the result. Print the values as
integers and as bits . Assume that an integer is of...
What is the smallest number in 8-bit unsigned integer representation? 4. What is 00000000-00000001 in 8-bit unsigned integer representation? 8. 10. What is 0011 1101 in 4-bit unsigned integer representation? Is it overflow?
What is the smallest number in 8-bit unsigned integer representation? 4. What is 00000000-00000001 in 8-bit unsigned integer representation? 8. 10. What is 0011 1101 in 4-bit unsigned integer representation? Is it overflow?
Exercise 1.25 Convert the following decimal numbers to unsigned binary numbers Exercise 1.31 Repeat Exercise 1.29, but convert to 8-bit sign/magnitude numbers KExercise 1.32 Repeat Exercise 1.30, but convert to 8-bit sign/magnitude numbers (a) 4210 (b) 6310 Exercise 1.33 Convert the following 4-bit two's complement numbers to 8-bit two's complement numbers. (c) 22910 (d) 84510 (a) 0101 b) 1010 XExercise 1.26 Convert the following decimal numbers to unsigned binary numbers. Exercise 1.34 Convert the following 4-bit two's complement numbers to...