Question

In: Computer Science

Question 1 i) A binary system uses 8-bits to represent an analog value ranging from 120...

Question 1

i) A binary system uses 8-bits to represent an analog value ranging from 120 ounces to 700 ounces, determine the resolution of the system and interprete your result.

ii) Determine the number of bits that would be needed for the above resolution to improve to better than 0.01 ounces per increment. Interpret your results.

iii) Use the binary coded decimal (BCD) representation of integers to represent each of the following integers.

2194

4576

7865

3947

3782

Solutions

Expert Solution

Question 1:

(i) We know, resolution of the system = analog range / (2n - 1)

Number of bits used by the system = n = 8

The range of the analog value varies from 120 to 700 ounces

So, we have:

Resolution of the system = (700 - 120) / (28 - 1)

or, Resolution of the system = 580 / (256 - 1)

or, Resolution of the system = 580 / 255

or, Resolution of the system = 2.274 units

(ii) Total increment = (700 - 120) ounces = 580 ounces

0.01 percent increment will add = (580 * 0.01) ounces = 5.8 ounces/inch (approximately)

So, the new resolution will be = (5.8 + 2.274) = 8.074

Let us consider, the number of bits = n

Resolution of the system = (700 - 120) / (2n - 1)

or, 8.074 = (700 - 120) / (2n - 1)

or, 8.074 = 580 / (2n - 1)

or, (8.074 * 2n) = 580 + 8.074

or, (8.074 * 2n) = 588.074

or, 2n = 72.83

or, n = 7 (as the ceil function is considered)

So, we can say that the number of bits required will be 7.

(iii) The decimal to Binary Coded Decimal (BCD) representation is shown below:

Decimal Binary Coded Decimal (BCD)
2194 0010 0001 1001 0100
4576 0100 0101 0111 0110
7865 0111 1000 0110 0101
3947 0011 1001 0100 0111
3782 0011 0111 1000 0010


Please comment in case of any doubt.
Please upvote if this helps.


Related Solutions

I have an 8 by 8 array that has values ranging from 1-64. I am wanting...
I have an 8 by 8 array that has values ranging from 1-64. I am wanting to display the array evenly but due to some digits being single and others double, it displays lopsided. What would be the best way to get everything in the array to display in a nice even square?
The binary number system uses just two digits (0 and 1) to represent any counting number....
The binary number system uses just two digits (0 and 1) to represent any counting number. Match each of the familiar 'base-10' numbers below with their 8-digit binary equivalents. Group of answer choices 7       [ Choose ]            00001111            01000001            00001101            00001000       8       [ Choose ]            00001111            01000001            00001101            00001000   ...
Represent the decimal number -6 in binary using 4-bits: 3a) signed magnitude ____________________________ 3b) 1’s complement...
Represent the decimal number -6 in binary using 4-bits: 3a) signed magnitude ____________________________ 3b) 1’s complement _____________________________ 3c) 2’s complement _____________________________
Consider a file system that uses inodes to represent files. Diskblocks are 8 kb in size,...
Consider a file system that uses inodes to represent files. Diskblocks are 8 kb in size, and a pointer to a disk block requires 4bytes. this file system has 12 direct disk blocks, as well assingle, double, and triple in direct disk blocks. What is themaximum size of a file that can be stored in this file system?Explain a little bit^^ Thank you
How do you represent 5.1 (5 + 1/10) in binary? I know that it is 0101....
How do you represent 5.1 (5 + 1/10) in binary? I know that it is 0101. (point something)
1.C++ uses the_______________symbol to represent the AND operator. 2.The switch statement uses the value of a(n)...
1.C++ uses the_______________symbol to represent the AND operator. 2.The switch statement uses the value of a(n) _____________expression to determine which group of statements to branch through. 3.C++ allows the programmer to compare numeric values using ________________________ 4.The local t-shirt shop sells shirts that retail for $12. Quantity dis-counts are given as follow: Number of Shirts Discount 5–10                    10% 11–20                   15% 21–30                   20% 31 or more           25% Write a program that prompts the user for the number of shirts required and...
Question 1 [20 Marks] In system modelling, a graphical notation is used to represent a system...
Question 1 [20 Marks] In system modelling, a graphical notation is used to represent a system in a way which is simple to express and understand. Different models are developed to represent the system from different perspectives. Discuss the Structural and Behavioural system models in detail.
The question asks to allow the user to integer ranging from 1 to 999 using JOPtionpane...
The question asks to allow the user to integer ranging from 1 to 999 using JOPtionpane in JAVA; and display those integers in words. For example, if the user enters 13 the program should display " Thirteen" and loop to ask the user to enter another integers. If the user enters 0, the program should quit. If the user enters an integer greater than 999, the program should display an error message and ask the user to enter an integer...
In this programming question, n integers ranging from 0 to n-1 are stored randomly in A,...
In this programming question, n integers ranging from 0 to n-1 are stored randomly in A, an array of size n. In the class Sort.java, you are supposed to implement the following two sorting algorithms: Insertion-sort and Heap-sort. You have to work directly on the given starter code. Download the starter code from the course web site. Read the starter code and make sure you understand how it works before attempting to modify it. In the given class Sort.java, Selection-sort...
Select the best answer for the question. 8. A/An _______ fuel-injection system uses individual pumps that...
Select the best answer for the question. 8. A/An _______ fuel-injection system uses individual pumps that are contained within a single injection pump housing. A. individual pump B. multiple-plunger, inline pump C. common rail D. distributor pump
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT