Topic 1 - Introduction To Computers and Programming PDF
Topic 1 - Introduction To Computers and Programming PDF
Topic 1 - Introduction To Computers and Programming PDF
PROGRAMMING 1
LECTURE: 01 – INTRODUCTION TO COMPUTERS AND PROGRAMMING
2/21
Learning Objectives:
After completing this chapter, you will be able to:
• know a history of computer
• explain types, hardware and software components of a computer
system
• describe about the language of a computer
• explain about the evolution of programming languages
• discover what a compiler, interpreter, assembler is and what it
does
• describe program development life cycle
• differentiate type of programming paradigm
3/21
What is a Computer?
A computer is an electronic device,
In 1994,
operating under reports
the control of
31%
instructions storedcancelled
in its own Produces
information
memory, that53% canmore thandata,
accept 2x over budget
(output)
process the data according to
specified rules, produce results, and
store the results for future use. Processing
Information processing cycle is
the series of input, process, output,
and storage activities. Collects data
(input)
5/21
What is a Computer?
In 2014, reports
31.1% total failure, cancelled
52.7% over budget
Average 16.2% completed
9% on-time and on-budget
6/21
Categories of Computers
• Supercomputer
• Mainframe computers
• Midrange computers
• Micro computers (personal computers)
• Mobile computers/Mobile device
• Game consoles
• Embedded Computers
7/21
Categories of Computers
Component of a Computer
PC (program counter):
• points to next instruction to be executed
CPU (Central Processing Unit)
(continued)
IR (instruction register):
holds instruction currently being executed
Main Memory
• Directly connected to the CPU
Secondary Storage
Secondary storage: Device that stores information pe
rmanently
Input/Output Devices
Input devices feed data and programs into
computers. They include:
Keyboard
Mouse
Secondary storage
Program/Software
Software/Programs: set of instructions that do specific
tasks; the instructions tell a computer to perform
necessary operations to process data (input) into
information (output).
System programs take control of the computer, such
as an operating system
Application programs perform a specific task
System Software
Games
• Specialized
• Apps
17/21
Programming?
Programming is the process of creating a
set of instructions that tell a computer how to
perform a task.
Low Level
Language
High Level
Language
The Language of a Computer
• EBCDIC
– Used by IBM
– 256 characters
• Unicode
– 65536 characters
– Two bytes are needed to store a character
Relationship between Compiler,
Interpreters and Programs.
• Computer programs can be written using
many languages BUT computers can only
directly recognize program written in machine
language.
Interpreter
Compiler