Professional Documents
Culture Documents
Introduction to
Computers
and
Programming
Languages
Animated Version
©The McGraw-Hill Companies, Inc. Permission
required for reproduction or display. Chapter 0 - 1
Chapter 0 Objectives
Output
Output
Devices
Devices
RAM
RAM
Commu-
Commu-
nication
nication CPU
CPU
Devices
Devices
Storage
Storage
Devices
Devices
Input
Input
Devices
Devices
How
Howthe
thedecimal
decimal
number
number isrepresented.
is represented.
Position Values
Example: 2 4 8 7
1 0 1 1
Example:
22 21 20 2 1
= 1 2 2 + 0 21 + 1 2 0 + 1 2 1
= 1 4 + 0 2 + 1 1 + 1 1/2
= 4 +0 + 1 + 1/2 = 5.5
– Machine Languages
– Machine language instructions are binary coded and very low level.
– Assembly Languages
– Assembly language allows symbolic programming. Requires an
assembler to translate assembly programs into machine programs.
– High-level Languages
– High-level language provides a very high conceptual model of
computing. Requires a compiler to translate high-level programs into
assembly programs.