Computer representation for the negative integer, Computer Engineering

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 2k-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 -2011

(b) Find the computer representation for the negative floating point number -2011

(c)   In storing the floating point number -2011 (part (b) above) the mantissa has been truncated hence the number stored is not exactly -2011. What is the actual number stored?

(d)  Find the 8 bit ASCII code for the five characters -2011

The five questions (e)-(i) below refer to the string of bits

010011110110000101110100

(e) Represent this bit string as a hexadecimal number.

(f)  In 8 bit ASCII code, what characters does this string represent?

(g)  If the string represents a pair of integers, what are these two integers?

(h) If the string represents a pair of floating point numbers, what are these two (smallest) numbers?

(i)  Give the ranges of other real numbers that could be represented by the same string.


Related Discussions:- Computer representation for the negative integer

What is the basic workflow order for color match, Question: (a) What is...

Question: (a) What is the difference between the Color Pass and the Color Replace effects? (b) What is the basic workflow order for Color Match? (c) Explain clearly the

Define public identifiers, Q. Define Public Identifiers? Public Identif...

Q. Define Public Identifiers? Public Identifiers: A public identifier is one which is defined within one module of a program however potentially accessible by all of the other

What is tri-state logic, Three Logic Levels are used and they are High, Low...

Three Logic Levels are used and they are High, Low, High impedance state. The high and low are normal logic levels & high impedance state is electrical open circuit conditions. Tri

What is the maximum frequency of operation, For the circuit demonstrated be...

For the circuit demonstrated below, what is the Maximum Frequency of Operation? Are there any hold time violations for FF2? When yes, how do you modify the circuit to ignore them?

Describe how a mobile terminating call, Problem: (a) Describe how a Mob...

Problem: (a) Describe how a Mobile Terminating call, from a PSTN phone, is processed in a GSM network. Illustrate your answer with a diagram. (b) What is a GPRS Support node

Convert logic circuit in a binary code, The logic circuit given below, conv...

The logic circuit given below, converts a binary code y 1 y 2 y 3 into Ans. Gray code is X1 = Y1,   X2 = Y1 XOR Y2  ,   X3 = Y1 XOR Y2 XOR Y3 For

What are the use of job queues and ready queues, What are the use of job qu...

What are the use of job queues, ready queues and device queues? As a process enters a system they are put in to a job queue. These queues having of all jobs in the system. The

Drawback of the system using disk caching, Q. Drawback of the system using ...

Q. Drawback of the system using disk caching? The main drawback of the system using disk caching is risking loss of updated information in event of machine failures like loss o

What is priority interrupt, What is Priority interrupt. It is a system ...

What is Priority interrupt. It is a system that establishes a priority over the several resources to determined which condition are to be serviced first when two or more reques

Define bus, Define bus A group of lines that serves as a connecting pat...

Define bus A group of lines that serves as a connecting path for various devices is known as a bus.

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