Question

In: Computer Science

i.Show that 0.0100112 is the binary representation of 0.29687510 ii.A computer system allows only 4 binary...

  • i.Show that 0.0100112 is the binary representation of 0.29687510
  • ii.A computer system allows only 4 binary digits after the decimal point. Write the two binary values with exactly 4 digits after the decimal point that ‘sandwich’ 0.0100112.
  • iii.Using the two binary ‘sandwich’ values that you found in (ii), write down the minimum and maximum binary values that sandwich the result of 0.0100112 + 0.0100112

  • iv.Convert each of the binary values you found in (iii) to decimal notation. Give the minimum and maximum values in decimal notation.
  • v.Calculate, in decimal, the value of 0.29687510 + 0.29687510 (Your answer is the actual value so it should not be rounded). By what percentage, rounded to the nearest whole percent, does the maximum value exceed the actual value? Your answer should show the actual value, the percentage and your workings for full marks.

Solutions

Expert Solution

Here, I am providing my handwritten solutions of above questions:

In case you have doubt like how we are finding just smaller and just greater value then i would like to answer that we are just changing bits in such a way that we get the corresponding smaller and greater value.


Related Solutions

Write the binary tree representation for the Binary Search for also 17 elements and give the...
Write the binary tree representation for the Binary Search for also 17 elements and give the worst-case
Look for the binary representation for each of the numbers in the left column of the...
Look for the binary representation for each of the numbers in the left column of the following table using the algorithm that iteratively divides by two. Show all steps of the algorithm for each number in different rows of a table with three columns like the example I have included. All steps are essential for getting full credit. Create 5 different tables for the 5 numbers. The numbers in the left column of the following table are expressed in base-10...
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal...
(6 pts) Convert the data representation given below • Convert 10110111 unsigned binary representation, to decimal representation. • Convert 01100000101110000001010111111000 the binary representation to a hexadecimal representation. • Convert 0xBAAADA55 hexadecimal representation, to a binary representation. 2. (8 pts) Complete the following arithmetic operations in two’s complement representation. What are the values of the carry flag and the overflow flag? (Assume a six-bit system) • 31 + 11 • 13 – 15 • (-2) x (-16) • (-15) ÷ 5
A program called i2b.c was implemented with the intention to provide a binary representation of an...
A program called i2b.c was implemented with the intention to provide a binary representation of an integer. Unfortunately, the implementation has the following limitation: It was hard-coded to only convert a single number. The conversion algorithm only works for positive number. Modify the existing source code of i2b.c such that: i2b.c can now accept a single command line argument. This command line argument is assumed to be a valid signed integer. i2b.c will convert the command line argument into its...
1. Trident Developers purchased a computer system for $100,000 on June 4, 2003. The computer system...
1. Trident Developers purchased a computer system for $100,000 on June 4, 2003. The computer system is used for business 100% of the time. The accountant for the company elected to take a $12,000 Section 179 deduction, and the asset qualified for a special depreciation allowance (see Table 17-4). Click here for Table 17-4 a. What was the basis for depreciation of the computer system? $ b. What was the amount of the first year's depreciation using MACRS? Click here...
Prove that every real number with a terminating binary representation (finite number
Prove that every real number with a terminating binary representation (finite number of digits to the right of the binary point) also has a terminating decimal representation (finite number of digits to the right of the decimal point).  
What is the 11 bit, binary representation of -108? What is the hexadecimal equivalent of this...
What is the 11 bit, binary representation of -108? What is the hexadecimal equivalent of this number?
Let T be a binary tree with n positions that is realized with an array representation...
Let T be a binary tree with n positions that is realized with an array representation A, and let f() be the level numbering function of the positions of T, as given in Section 8.3.2. Give pseudocode descriptions of each of the methods root, parent, left, right, isExternal, and isRoot.
Draw the binary tree representation of the following arithmetic expression: "( ( ( 6 + 3...
Draw the binary tree representation of the following arithmetic expression: "( ( ( 6 + 3 ) * ( 3 - 2 ) ) / ( ( 3 + 10 ) + ( ( 8 - 3 ) - 2 ) ) * 9 )" -Give an O(n)-time algorithm for computing the depth of all positions of a tree T, where n is the number of nodes of T.
COMPUTER SCIENCE- FLOATING POINT REPRESENTATION: Hello, I completed a program for floating point representation (it can...
COMPUTER SCIENCE- FLOATING POINT REPRESENTATION: Hello, I completed a program for floating point representation (it can add and multiply floating point values in IEEE format). I already completed it, but I came back with 3 small errors. Can someone please fix them? I posted them at the bottom, here is the code: __________________________________________________________________________________________________________________________________ fp.java: // fp class public class fp {    // add function public int add(int a, int b) { FPNumber fa = new FPNumber(a); FPNumber fb =...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT