Chapter 4: Contemporary trends in information and communication technologies
55
Each form of data has its own way of using the raw storage capability
(RAM or secondary storage). Just by looking at a pattern of 1s and 0s,
it is not possible to tell what
type of data is being stored, but once the
type is known, then the pattern can be decoded. For example, the pattern
01001011 represents the letter ‘K’ in the ASCII
code for representing text;
but it represents the decimal number 75 if this binary code is interpreted
as a binary number. It might also represent the machine code instruction
‘add’.
Text is stored in a computer according to standard systems of encoding
– usually some version of the ASCII code. Each character is stored in one
byte (made up of eight individual bits). Thus, a name and address of 80
characters will use 80 bytes of storage. All the printing
characters that you
can generate from your keyboard have an equivalent representation in the
ASCII code; in addition, there are some non-printing codes – such as end
of line, backspace,
line feed, etc.
Activity
A warehouse stores information on 3,000 products. Each product description comprises
about 500 characters of data plus a photo of half a megabyte. How much disc space is
needed to store this information? Express your answer in megabytes and kilobytes.
Dostları ilə paylaş: