Lecture 2
Lecture 2
FCCS1003
Computer Studies
Week 2:
Coding Scheme and Number
System
FCCS1003 Computer Studies
Current Computers
Fourth-Generation Computers (1971-
current)
Microprocessor: thousands of integrated
circuits built onto a single silicon chip.
The first microprocessor: Intel 4004 chip.
Eg: home PC, laptop, PDA, mobile phones,
embedded computers, game console, etc.
FCCS1003 Computer Studies
Future Computers
Fifth-Generation Computers (future)
Based on Artificial Intelligence or AI.
AI: ‘fake brain’
How to train the computer to emulate
human brain
Eg: ability to think, remember and
reason
Watch i-Robot
Electronic Switches
Non-mechanical devices in
computers that open and close
circuits
Types of electronic switches:
Vacuum tubes
Transistors:
Semiconductors
Integrated circuits
Digital Data: Switches and Bits
Electronic switches:
Vacuum tubes
Transistors
Integrated circuits
Binary number system:
Representing numbers
Representing letters and symbols
ASCII
Unicode
The System Unit
The Binary System: Using On/Off Electrical
States to Represent Data & Instructions
The binary system
has only two digits
- 0 and 1
Bit - binary digit
Byte - group of 8
bits used to
represent one
character, digit, or
other value
Switches Representing Data
The on/off state of a switch
represents one bit of data
Bit (binary digit): OFF
ON
On = 1
Off = 0
OR = 1 bit
0 1
Representing Characters:
Character Codes
➼ Character codes translate numerical
data into characters readable by
humans
American Standard Code for
Information Interchange (ASCII) – Eight
bits equals one character; used by
minicomputers and personal computers
Extended Binary Coded Decimal
Representing Characters:
Character Codes
Unicode – Sixteen bits equals one
character; over 65,000 combinations;
used for foreign language symbols
The Binary Number System
Number systems:
Organized ways to Binary
represent numbersBase2 digits
10 0 and
1
10 digits 0 through 9
64 32 16
1000 8100 410 21 1
2x32 2x16 2x8 2x4 2x2 2x1
10x10 10x10 10x1
0
Base 10
1011001 = 89
5832
Bits
1000 bits = 1 kilobit (kb)
1,000,000 bits = 1 megabit (mb)
1,000,000,000 bits = 1 gigabit (gb)
Number System
Modern: based on positional
notation (place value)
Decimal system: system of
positional notation based on
powers of 10.
Binary system: system of
positional notation based powers
of 2
Hexadecimal system: system of
positional notation based on
powers of 16
FCCS1003 Computer Studies
Value 10 1
Evaluat 4 x 10 3 x1
e
Sum 40 3
FCCS1003 Computer Studies
Value 100 10 1
Evaluate 5 x 100 2 x 10 7 x1
Sum 500 20 7
FCCS1003 Computer Studies
Positional Notation: Hexadecimal
6,70416 = 26,37210
Sum for
24,576 1,792 0 4
Base 10
FCCS1003 Computer Studies
Positional Notation: Octal decimal
6,7048 = 3,52410
Place 83 82 81 80
Value 512 64 8 1
Sum for
3,072 448 0 4
Base 10
FCCS1003 Computer Studies
Place 27 26 25 24 23 22 21 20
Value 128 64 32 16 8 4 2 1
Evaluat 1x 1x 0x 1 0x 1x 1x 0x
e 128 64 32 x16 8 4 2 1
Sum for
128 64 0 16 0 4 2 0
Base 10
FCCS1003 Computer Studies
Power 8 7 6 5 4 3 2 1 0
Base
2 256 128 64 32 16 8 4 2 1
32,76
8 4,096 512 64 8 1
8
65,53 4,09
16 256 16 1
6 6
FCCS1003 Computer Studies
Power
Base 6 5 4 3 2 1 0
2 64 32 16 8 4 2 1
1 0 1 0 1 0
Integer 42/32
10/16 10/8 2/4 2/2 0/1
=1 =0 =1 =0 =1 =0
Remainde 10 10 2 2 0 0
r
FCCS1003 Computer Studies
Power
Base 4 3 2 1 0
6
1 6 6 7
16 ) 5,735 Remainde
Quotient16 ) r
358
( 7 Least significant
16 ) 22 (bit
6
16 ) 1 (6
16 ) 0 ( 1 Most significant bit
Base 16 1667
FCCS1003 Computer Studies
16 ) 8,039 Remainde
Quotient r
16 ) 502
( 7 Least significant
16 ) 31 (bit
6
16 ) 1 ( 15
16 ) 0 ( 1 Most significant bit
Base 16 1F67
FCCS1003 Computer Studies
8 4096 512 64 8 1
1 3 3 7
Integer 735 /512 223 / 64 31 /8 =3 7
=1 =3
Remainde 735 - 512 223 –192 31-24 =
r = 223 = 31 7
FCCS1003 Computer Studies
8) 735 Remainde
Quotient 8 ) r
91
( 7 Least significant
8) 11 (bit
3
8) 1 (3
0 ( 1 Most significant bit
Base 8 1337
FCCS1003 Computer Studies
From Base 16 to
Base 2 & Base 8
Base 16 1 F 6 7
So answer is 1 7 5 4 78
(001=1) (111=7) (101=5) (100=4) (111=7)
FCCS1003 Computer Studies
EXERCISES
A) Convert the following binary numbers to its
decimal equivalent:
❖ 1101012
❖ 11100112
❖ 1010112
❖ 11000112
EXERCISES
C) Convert the following hexadecimals
to its decimal equivalent:
3E7
16
4A5C
16
50
16
EXERCISES
E) Convert to hexadecimal form and
octal decimal form:
❖ 11101101101100
2
❖ 11100011111102
❖ 1111102
❖ 2893