Data Representantion and Processing G10
Data Representantion and Processing G10
0 0 0 0 0 1 0 0
Coding scheme
▪ The ASCII (American Standard Code for Information
Interchange.
• It is most widely used common scheme for data
representation, it can represent 65 000 codes.
▪ Unicode
• It can represent 65 000 characters and symbols.
• It is capable of representing all world’s current
languages.
Reasons for data representation
▪ Makes it possible for humans to communicate with a digital
computer that uses 1s and 0s for processing.
▪ When data is in human-readable form via input devices, the data is
converted into machine-readable (binary) form which can
computer can process and store in its memory.
▪ Makes it possible for components of the computer to communicate
with each other successful.
▪ Standards also enable the manufacturers to produce a component
and be confident that they will operate correctly in a computer.
Exercise
▪ Barcodes
▪ Optical mark recognition (OMR)
▪ Optical Character Recognition (OCR)
▪ Magnetic ink Character Recognition (MICR)
▪ Smart cards
▪ Magnetic stripes
Barcode reader Optical Mark
Reader
Quick Response
Magnetic
Magnetic
Stripe Cards
Stripe Card
Reader
Methods of data preparation and data
errors
Data preparation
3 2 1 0
0 1 1 0
A nibble
Measure of storage capacity
▪ Base 10
▪ Number of elements 10
▪ Elements 0 1 2 3 4 5 6 7 8 9
Place value system
5432.9
Position 3 2 1 0 -1
Place value has a base 103 102 101 100 10−1
Decimal value 1000 100 10 1 0.01
Numbers 5 4 3 2 9
Expanded notation
Example 1
5432.9
Solution
= 5 x 103 + 4 x 102 + 3 x 101 + 2 x 100 + 9 x 10−1
= 5 x 1000 + 4 x 100 + 3 x 10 + 2 x 1 + 9 x 0.1
= 5000 + 400 + 30 + 2 + 0.9
= 5432.9
Binary number system
▪ It is used by computers
Base 2
Number of elements 2
Elements 0 1
Position 3 2 1 0 -1
Place value has a base 23 22 21 20 2−1
Decimal value 8 4 2 1 0.5
Numbers 1 0 1 1 1
Convert binary to decimal
Example
= 1011.12
= 1 x 23 + 0 x 22 + 1 x 21 + 1 x 20 + 1 x 2−1
= 1 x 8 + 0 x 4 + 1 x 2 + 1 x 1 + 1 x 0.5
= 8 + 0 + 2 + 1 + 0.5
= 11.5
The octal number system
▪ It is also used in computers
▪ Base 8
▪ Number of elements 8
▪ Elements 0 1 2 3 4 5 6 7
Example: 215.228 can be represented as follows
Position 3 2 1 0 -1
Place value has a base 82 81 80 8−1 8−2
Decimal value 64 8 1 0.125 0.015625
Numbers 2 1 5 2 2
Convert an octal to binary
215.228
= 2 x 82 + 1 x 81 + 5 x 80 + 2 x 8−1 + 2 x 8−2
= 2 x 64 + 1 x 8 + 5 x 1 + 2 x 0.125 + 2 x 0.015625
= 128 + 8 + 5 + 0.25 + 0.03125
= 141. 281259
The hexadecimal number system
Base 16
Number of elements 16
Elements 0 1 2 3 4 5 6 7 8 9A B C D E F
EXAMPLE 2AF.B16
Position 2 1 0 -1
Place value has a base 162 161 160 16−1
Decimal value 256 16 1 0.0625
Numbers 2 A F B
Base quotient R
8 453
8 56 5
8 7 0
0 7 45310 = 7058
Solution (c)
Base quotient R
16 3456
16 216 0
16 13 8
0 13 (D) 345610 = D8016
Converting from decimal to hexadecimal
1. Example
2. Convert 345610 to hexadecimal
input output
INPUT
▪ Acquiring or gathering data and entering it into the computer
system.
▪ The data is validated by checking for completeness and
accuracy.
▪ Data refers to unprocessed text, images, video or audio.
▪ Examples
• Capturing the prices of items in a supermarket using a bar
code reader.
• Gathering information using a form on a website.
• Typing using word processing program.
Input devices
▪ Keyboard
▪ Mouse
▪ Scanners
▪ Barcode readers
▪ Touchpads
▪ Digital cameras
▪ Video cameras
▪ Microphones
▪ Voice recognition
▪ Biometric devices
Processing
▪ The operation performed on the data to produce
information.
▪ The CPU is responsible for data processing.
▪ All data that is currently being processed by the CPU is
stored temporarily in a random access memory (RAM).
Storage
▪ Saving data for future use.
▪ Data and information stored in a secondary storage is
not lost when the computer is switched off.
Storage devices
▪ CDs
▪ DVDs
▪ Blu-ray
▪ External hard drive
▪ USB drives
Output
▪ Presenting the in the required format for the user.
▪ Output can be in form of hardcopy, softcopy, audio, or
video.
Output Devices
▪ Printers
▪ Monitor
▪ Fax
▪ Headset
▪ Speakers
▪ Multifunction devices
▪ Data projectors
Communication
▪ Computers are able to communicate with other
computers and mobile devices.
Exercise
1. Explain the meaning of the term data.
2. State two input devices which automatically
capture data.
3. Give an application that uses the devices you
have mentioned in question 2.
4. State two examples of output devices.
5. What is data integrity?
Data integrity
▪ Data integrity refers to the accuracy and
consistency of data stored in data base.
▪ if data is inaccurate then the results will be
inaccurate, this is called GIGO (Garbage in,
Garbage Out)
▪ Data integrity is vital because people make
decisions and take actions based on processed
data.
Types of computer processing file