Question

(4 marks) Give the formulas for the minimum and maximum values representable in n bits for:...

Give the formulas for the minimum and maximum values representable in n bits for:

(a) unsigned

(b) signed magnitude

(c) two’s complement

(d) one’s complement

Homework Answers

Answer #1

A. For unsigned numbers,

minimum value = 0

maximum value = 2n-1

For example for 5 bits range will be 0 to 31. 31 in binary 11111 that is max number possible using 5 bits.

B. For signed numbers,

minimum value =  -(2(n-1)-1)

maximum value = (2(n-1)-1)

For example, for 6 bits -(25-1) to (25-1) means -31 to +31.

C. For two's complement,

minimum value =  -(2(n-1))

maximum value = (2(n-1)-1)

For example, for 6 bits, range will be -(25) to (25-1) means -32 to +31.



C. For one's complement,

minimum value =  -(2(n-1)-1)

maximum value = (2(n-1)-1)

For example, for 6 bits -(25-1) to (25-1) means -31 to +31.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Represent the following decimal numbers in binary using 8-bit signed magnitude, one’s complement, and two’s complement:...
Represent the following decimal numbers in binary using 8-bit signed magnitude, one’s complement, and two’s complement: a) 77 b) -42 c) 119 d) -107 E) 60 f) -60 g) 20 h) -20
4) Convert the following binary values from 4 bit numbers to 7 bit values a) 2s...
4) Convert the following binary values from 4 bit numbers to 7 bit values a) 2s complement value: 0101 b) 2s complement value: 1010 c) Unsigned binary value: 0101 d) Unsigned binary value: 1010 e) Sign Magnititude value: 0101 f) Sign Magnititude value: 1010
Part a) For an unsigned number that represent binary with n bits, what is the range...
Part a) For an unsigned number that represent binary with n bits, what is the range of value for that? Part b) How many rows appear in a truth table with n input variables? Part c) How many memory location are there if the memory address is n bits?
Use the given values of n and p to find the minimum usual value μ-2σ and...
Use the given values of n and p to find the minimum usual value μ-2σ and the maximum usual value μ+2σ. Round your answer to the nearest hundredth unless otherwise noted. n = 2112, p = 3/4A) Minimum: 1478.7; maximum: 1689.3 B) Minimum: 1544.2; maximum: 1623.8 C) Minimum: 1564.1; maximum: 1603.9 D) Minimum: 1623.8; maximum: 1544.2
a) I want the answers to the following parts in hex a. What is [A+4]? b....
a) I want the answers to the following parts in hex a. What is [A+4]? b. What is [B+4]? c. What is [D+4] 7) Using one byte of storage (8 bits)or 16 bits if needed, what is the binary two’s complement representation of each of the following decimal numbers? a. -111 b. -126
Find the absolute maximum and minimum values of ?(?) = ? 4 − 8? 3 +...
Find the absolute maximum and minimum values of ?(?) = ? 4 − 8? 3 + 16? 2 + 4 on [1,5]
Use the given values of n and p to find the minimum usual value µ -...
Use the given values of n and p to find the minimum usual value µ - 2σ and the maximum usual value µ + 2σ. n = 95, p = 0.21 Minimum: 27.89; maximum: 12.01 Minimum: 12.01; maximum: 27.89 Minimum: -11.57; maximum: 51.47 Minimum: 15.98; maximum: 23.92
Use the given values of n and p to find the minimum usual value µ -...
Use the given values of n and p to find the minimum usual value µ - 2σ and the maximum usual value µ + 2σ. n = 1080, p = 0.80 Group of answer choices Minimum: 850.85; maximum: 877.15 Minimum: 845.41; maximum: 882.59 Minimum: 837.71; maximum: 890.29 Minimum: 890.29; maximum: 837.71
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned...
1. Assuming unsigned binary representation, convert 10110 (B) to decimal. Show work. 2 . Assuming unsigned binary representation, convert 12 (D) to binary. Show work. 4. Assuming 9-bit two’s complement representation and let x be binary representation of 94 (D) a. Find x. Show work. b. Show the effect of the ASL operation on x, and then convert the result back to decimal. c. Show the effect of the ASR operation on x, and then convert the result back to...
Find all the maximum values and minimum values of the function. F(x) = x-6 / (x-4)^2
Find all the maximum values and minimum values of the function. F(x) = x-6 / (x-4)^2