1.1.overview of Computers and Programming V2
1.1.overview of Computers and Programming V2
Computers Overview
Hardware
Memory
Software
Computer Languages
Page 2
Computers
Page 3
The elements of a computer system
Page 4
Hardware
Components of a Computer
Page 6
Memory
Essential component in any computer
Ordered sequence of storage locations called memory cells, To store
and access information.
Each memory cell has a unique address that indicates its relative
position in memory.
Communication with memory is done using three Buses:
Data Bus (To read/write the actual data).
Address Bus (to identify the exact memory cell to read or write).
Control Bus (to control if I want to read or write).
The data stored in a memory cell are called the contents of the cell.
Page 7
Memory
1000 memory Cells.
A memory cell is a grouping of smaller units called bytes
A byte is composed of even smaller units of storage called
bits.
The term bit , derived from the words binary digit , is the
smallest element a computer can deal with.
Page 8
Numbering System
A numbering system is a systematic method for representing
numbers using a particular set of symbols.
Binary System.
Decimal System.
Octal System.
Hexadecimal System.
Page 9
Binary System
Page 10
Storage Capacity
Page 11
Main Memory
Page 13
Page 14
Software
Operating System
Page 16
Computer Languages
Developing new software requires writing lists of instructions for a
computer to execute.
The Computer only understand machine language.
Machine language is a collection of binary numbers.
Software developers rarely write in the machine language.
Another drawback of machine language is that it is not standardized.
There is a different machine language for every type of CPU.
Assembly language is more readable.
Page 17
Machine Language Program Fragment
and its Assembly Language Equivalent
Page 18
Assembly language
Page 19
High-level languages
To write programs that are independent of the CPU.
Combine algebraic expressions and symbols taken from English.
Example: a = a + b;
It is easier to express problem solutions in high-level languages.
Remains the problem that computers do NOT understand these languages.
Thus, before a high-level language program can be executed, it must first be translated
into the target computer’s machine language.
The program that does this translation is called a compiler.
Page 20
Levels of Programming Language Example
High-level
Low-level assembly
Machine binary language
Page 21
Any Questions???…
Page 22