Discrete mathematics for computing, math, Mathematics

Assignment Help:
Everything stored on a computer can be represented as a string of bits. However, different
types of data (for example, characters and numbers) may be represented by the same string of
bits. For this question, we assume that text characters (or symbols) are stored in 8 bit ASCII
code and that numbers are stored in 12 bits. We also assume that when the number is stored
as a floating point (real) number, 6 of these bits are reserved for the mantissa (or significand)
with 2 1
k?1
? as the exponent bias (where k is the number of bits for the characteristic).
For example, the string of bits 001101100011100100110101 might represent the three
characters in 695 or two numbers, which will be different depending on whether the numbers
are stored as integers (867 and -1739 here) or as floating point numbers (0.13671875 and
-0.00040435791015625 here). More precisely, any real number between 0.13671875 and
0.140625 will have the same floating point representation in this, not very accurate, scheme.
Similarly, any real number between -0.00040435791015625 and -0.0004119873046875 will
also have the same computer representation.
(a) Find the computer representation for the negative integer -1231
[2 marks]
(b) Find the computer representation for the negative floating point number -1231
[2 marks]
(c) In storing the floating point number -1231 (part (b) above) the mantissa has been
truncated hence the number stored is not exactly -1231. What is the actual number
stored?
[2 marks]
(d) Find the 8 bit ASCII code for the five characters -1231
[2 marks]
The five questions (e)-(i) below refer to the string of bits
010000100110000101110010
(e) Represent this bit string as a hexadecimal number.
[1 mark]
(f) In 8 bit ASCII code, what characters does this string represent?
[1 mark]
(g) If the string represents a pair of integers, what are these two integers?
[2 marks]
(h) If the string represents a pair of floating point numbers, what are these two (smallest)
numbers?
[4 marks]
(i) Give the ranges of other real numbers that could be represented by the same string

Related Discussions:- Discrete mathematics for computing, math

Binomial probability distribution, Binomial Probability Distribution B...

Binomial Probability Distribution Binomial probability distribution is a set of probabilities for discrete events. Discrete events are those whose outcomes or results can be c

Geometry, all basic knowledge related to geometry

all basic knowledge related to geometry

Abstract algebra, Let D(subscript12) = ({x,y : x^2 = e ; y^6 = e ; xy =(...

Let D(subscript12) = ({x,y : x^2 = e ; y^6 = e ; xy =(y^-1) x}) a) Which of the following subsets are subgroups of D(subscript12) ? Justify your answer. i) {x,y,xy,y^2,y^3,e}

The blood pressure over two heart beats, At rest, the human heart beats onc...

At rest, the human heart beats once every second. At the strongest part of the beat, a person's blood pressure peaks at 120mmHg. At the most relaxed part of the beat, a person's bl

Geometry of convex sets, (a) Given a norm jj jj on Rn, express the closed b...

(a) Given a norm jj jj on Rn, express the closed ball in Rn of radius r with center c as a set. (b) Given a set A and a vector v, all contained in Rn, express the translate of A by

Normal Distribution, You don''t have to give me the answer. I just want to ...

You don''t have to give me the answer. I just want to know HOW to do it. In a set of 400 ACT scores where the mean is 22 and the standard deviation is 4.5, how many scores are ex

Direction fields, steps to draw direction or slope fields

steps to draw direction or slope fields

Multiplication and division, you want to share 34 pencils among 6 friends ....

you want to share 34 pencils among 6 friends .How many would each friend get?

Find the equation for each of the two planes , Find the equation for each o...

Find the equation for each of the two planes that just touch the sphere (x - 1) 2 + (y - 4) 2 + (z - 2)2 = 36 and are parallel to the yz-plane. And give the points on the sphere

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd