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
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
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
1) Use the First Derivative Test to find the local maximum and minimum values of the...
1) Use the First Derivative Test to find the local maximum and minimum values of the function. (Enter your answers as a comma-separated list. If an answer does not exist, enter DNE.): g(u) = 0.3u3 + 1.8u2 + 146 a) local minimum values:    b) local maximum values:    2) Consider the following: f(x) = x4 − 32x2 + 6 (a) Find the intervals on which f is increasing or decreasing. (Enter your answers using interval notation.) increasing:    decreasing:...
Find the absolute maximum and minimum values of f on the set D. f(x, y) =...
Find the absolute maximum and minimum values of f on the set D. f(x, y) = 4x + 6y − x2 − y2 + 8, D = {(x, y) | 0 ≤ x ≤ 4, 0 ≤ y ≤ 5} Find the absolute maximum and minimum values of f on the set D. f(x, y) = 2x3 + y4 + 2,    D = {(x, y) | x2 + y2 ≤ 1}