Lecture 1,2 Introduction To Computing
Lecture 1,2 Introduction To Computing
Lecture 1
Lecturer’s information
• Name: Dr. Gamil R. S. Qaid
• Academic Qualification:
• Email: jrsk80@yahoo.com
Total: 100 %
Computer Architecture and Number Systems
Topics that’s will cover in this Course
• Basics Computer Components, Concepts and Functions
• Application & System Software
• Operating Systems for Computers
• Telecommunication Systems
• Computer Files
• Web Browsers and Technology
• Utilizing Microsoft Office
• Database fundamentals
• Computer Programming Fundamentals
• Computer Threats and Security
What is Computer?
• Data are read from or written to memory in cells. A cell can be 8 – 64 bits.
• Cells may be grouped into words. E.g., four 8-bit cells forms one word.
Memory Unit
• Input/Output Unit
• Input unit accepts input data and programs from an input device.
• Output unit sends the results of processing (output) to an output
device.
• Tells input unit when info is ready to be read into the memory unit.
• Tells output unit when to send info from the memory unit to an
output device.
Computer Components Interconnection
• CPU and memory are connected by a bus.
• A bus is a group of parallel wires that carry control signals and data
between CPU and memory.
Computer Components Interconnection
• Address Bus
• Control Bus
• Data bus consists of many wires. Each wire carries 1 bit at a time.
Data types:
• Text
• Number
• Image
• Audio
• Video
Bits, Bytes, and Words
• A bit is a single binary digit (a 1 or 0).
• A byte is 8 bits
• A word is 32 bits (that is, 4 bytes)
• Long word = 8 bytes = 64 bits
• Quad word = 16 bytes = 128 bits
• Programming languages use these standard number of bits when organizing
data storage and access.
• What do you call 4 bits?
(hint: it is a small byte)
Number Systems
• Instead of using ten digits, 0 - 9, the binary system uses only two
digits, 0 and 1.
1 0 0 1 1 0 1
26 25 24 23 22 21 20
Converting from Binary to Decimal
1 0 0 1 0 0 1 1 X 20 = 1
26 25 24 23 22 21 20 0 X 21 = 0
0 X 22 = 0
20 = 1 24 = 16 1 X 23 = 8
21 = 2 25 = 32 0 X 24 = 0
22 = 4 26 = 64 0 X 25 = 0
23 = 8 1 X 26 = 64
7310
Converting from Binary to Decimal
Practice conversions:
Binary Decimal
101
1101
101101
Converting From Decimal to Binary
44 / 2 = 22 rem = 0
22 / 2 = 11 rem = 0
11 / 2 =5 rem = 1
5/2 =2 rem = 1
2/2 =1 rem = 0
1/2 =0 rem = 1
Done answer = 1 0 1 1 0 0 2
Converting From Decimal to Binary
Practice conversions:
Decimal Binary
59
82
175
Working with Large Numbers
1101000010100110 = ?
• Humans don’t work well with binary numbers; there are too
many digits to deal with.
3 C 8 B 0 5 1
166 165 164 163 162 161 160
The Hexadecimal Number System
1 A 5 F
4096 256 16 1
= 1 x 4096 + A x 256 + 5 x 16 + F x 1
= 1 x 4096 + 10 x 256 + 5 x 16 + 15 x 1
= 4096 + 2560 + 80 + 15
Converting From Decimal to Hexadecimal
Binary: 1 0 1 0 0 0 0 1 0 1 0 0 1 1 12
Decimal: 2064710
Hexadecimal: 50A716