Professional Documents
Culture Documents
Lec 4
Lec 4
1
Transforming Data Into Information
• Understands only two states either On or Off
• Makes different patterns of 0s and 1s
• Data vs Information
• How Computers Represent Data
2
How Computer Represent Data
• Number system
• Manner of Counting
• Several different number systems exist
• To Computer everything is a number
• Alphabets, numbers, punctuation marks,
sound, pictures, computer instructions
• For example
• “Here are some words.”
3
Decimal Numbers
• Used by humans to count
• Latin word deci mean 10
• Also called Base 10
• Have 10 distinct digits
• 0123456789
• 10 is a two-digit number
• Digits combine to make larger
numbers
4
Binary Number System
• Switch has two states
• Off represents 0, On is 1
• Latin bi means 2
• Used by computers to count
• Two distinct digits, 0 and 1
• 0 and 1 combine to make numbers
• represent a quantity >1 it uses two (or
more) digits
• Pattern repeats indefinitely
5
Data Representation
A computer circuit represents the 0 or the 1
electronically by the presence or absence of an
electrical charge
6
Comparison Base 2 to Base 16
7
Number Conversion
• Decimal to Binary and Binary to Decimal
• Decimal to Hexadecimal and Hexadecimal to Decimal
• Binary to Hexadecimal
• Hexadecimal to Binary
8
Decimal To Binary
•1
9
Decimal To Binary
• (151)10 = (10010111)2
10
Binary to Decimal
11
Binary to Decimal
12
Binary to Decimal
• 11100012 = 11310
13
Binary to Decimal
• 111001111012 = 185310
• 110110102 = 21810
14
Number System Program
Genius Maker
Free software
Use the number system
http://www.goldenkstar.com/number-system-school-software-maths.htm
15
Summary
Number System
Decimal
Binary
Number conversion
16
Number System - Exercise
18