Chapter 02 Part1 Itce101
Chapter 02 Part1 Itce101
Chapter 2 _ Part 1:
Inside the System Unit
(How Computers Represent
Data)
Content based on Computers Are Your Future Book, Twelfth Edition
Objectives
Explore the methods of representing textual and numerical data in
computers.
Number systems
Floating-points
Binary codes
Other systems:
Binary (base 2) , Octal (Base 8), Hexadecimal
(Base 16)
ITCE 101: Computer Technologies 12/20/2024 7
Conversion - Decimal to
Other Systems Q: convert the following:
1. (47)10 to ( 101111 )2
2. (675) 10 to ( 2A3 ) 16 1) (53)10 to binary
2) (590)10 to hexadecimal
3) (70)10 to binary
4) (70)10 to hexadecimal
(1110001) = ( ) 10 (AD)
2 16 = ( ) 10
2. (5F) 16 = ( ?? )2 2. (1110011100010000)2 =
( ?? )16
(2F1) =( )2 (1010111100) =( ) 16
16 2
(2C0D) (11100010110) = (
16 = ( )2 ) 16
Questions
2
Q2) Find 10 ?
ITCE 101: Computer Technologies 12/20/2024 15
Binary codes
Letters, numbers, and symbols are converted into numbers
(combinations of 0s and 1s called Binary code), so the
computer can understand.
In most binary code types, the number of bits should be
specified
Examples of Binary codes:
American Standard Code for Information Interchange (ASCII): 7
bit (128 different codes)
Extended Binary Coded Decimal Interchange Code (EBCDIC): 8
bit (256 different codes)
Unicode: 16 bits (65536 different codes)
Others: BCD (4-bit)
ITCE 101: Computer Technologies 12/20/2024 16
Unit’s conversion – Storage capacity unit
A byte is a sequence of 8 bits (enough to represent one alphanumeric
character) processed as a single unit of information.
Unit Conversion factor
Kilobyte (KB) (210) Byte
Megabyte (MB) (220) Byte
Gigabyte (GB) (230) Byte
Terabyte (TB) (240) Byte
Examples:
1. 500 Bytes to KB = 500/1024 = 0.488 KB
2. 2 KB to Byte = 2 *1024 = 2048 B
3. 2.5 MB to bits = 2.5/1024 * 1024 * 8 = 20971520 b
4. 500000 B to MB = 500000/(1024 *1024) = 0.477 MB
ITCE 101: Computer Technologies 12/20/2024 17
Unit’s conversion – Frequency unit
Hertz (Hz): is the unit of frequency.
Analog Digital
signal signal
Frequency (F) = 1/T , where T is the time for 1 clock cycle
ITCE 101: Computer Technologies 12/20/2024 18
Unit’s conversion – Frequency unit
Computer Processor (CPU) speed is measured by how many clocks
(cycles) per second the processor can make.
The processor can achieve X GHz in modern computers.
Unit Conversion factor
Kilohertz (KHz) (103) Hz
Megahertz (106) Hz
(MHz)
Gigahertz (GHz) (109) Hz
Terahertz (THz) (1012) Hz
Examples:
1. 5000 Hz to KHz = 5000/1000 = 5 KHz
2. 6000000 Hz to MHz = 6000000/(1000 *1000) = 6 MHz
3. 2 KHz to Hz = 2 *1000 = 2000 Hz
ITCE 101: Computer Technologies 12/20/2024 19
Unit’s conversion – Time unit
Second is the unit of time.
Operations in modern computers are extremely fast, there for we
need express the time of operation with very tiny time units.
Unit Conversion factor
millisecond (ms) (10-3) second
microsecond (10-6) second
(μs)
nanosecond (10-9) second
(ns)
picosecond (ps) (10-12) second
Examples:
1. 2s to ms = 2 * 1000 = 2000 ms
2. 10000 µs to second = 10000 * 10-6 = 10000 /(1000 *1000) = 0.01 s
3. 20x106 ns to ms = 20x106 / 106 = 20 ms
ITCE 101: Computer Technologies 12/20/2024 20
Research-based Learning
Conduct a research to identify and
explore the following related
keywords:
1. Precision
2. Clock Cycle
3. Bitwise Operations
4. Data Representation