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

Difference between global and local variables, Global and Local Variables ...

Global and Local Variables Global variables: The features are as pursue Declared outside of all functions or before main. These can be used in all the functions in the progra

Explain about variable-length of instructions, Q. Explain about Variable-Le...

Q. Explain about Variable-Length of Instructions? With the better understanding of computer instruction sets designers developed the idea of having a range of instruction forma

Simulate a real life product development , The goal is to simulate a real l...

The goal is to simulate a real life product development and familiarize learners with the design process of a system, component, or process to meet desired requires within realisti

What are micrographics, What are micrographics? A micrographic is an im...

What are micrographics? A micrographic is an image or photographic reproduction of an object which is then changed to film. Micrographics are frequently used for permanent reco

Determine the nand gate, Find out the two inputs when the NAND gate output ...

Find out the two inputs when the NAND gate output will be low. Ans. The output of NAND gate will be low if the two inputs are 11. The Truth Table of NAND gate is shown

Illustrate about compact disk rewritable, Q. Illustrate about Compact Disk ...

Q. Illustrate about Compact Disk Rewritable? CD-RW optical disk can be repeatedly written and overwritten same as with a magnetic disk. Even though a number of techniques have

Explain direct addressing mode with example, Q. Explain Direct Addressing M...

Q. Explain Direct Addressing Mode with example? Direct Addressing Mode A direct operand signifies to contents of memory at an address referred by the name of the variable.

Explain the action of an interrupt processing routine, Explain the action o...

Explain the action of an interrupt processing routine? Action of an interrupt processing routine is as follows : 1. Save contents of registers of CPU. This action is not e

Dram simm, The most common type of non-volatile memory is the ROM device. T...

The most common type of non-volatile memory is the ROM device. This device is read only and the data is masked into the chip during manufacture. Variations of the ROM are one off p

Optimality - heuristic search strategies, Optimality - Heuristic search str...

Optimality - Heuristic search strategies: The path cost of a solution is considered as the sum of the costs of the actions that led to which solution is given. This is only on

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