Introduction To Computers
Introduction To Computers
AND PROGRAMMING
LANGUAGES
INTRODUCTION
• Abacus
- first device to carry
calculations
- invented in Asia
but used in ancient
Babylon, China,
and Europe
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
• Pascaline
- invented by Blaise Pascal in 1642
- could sums up to 8 figures long
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
• Stepped Reckoner
- a device invented by Gottfried von Leibniz
that was able to add, subtract, multiply, and
divide
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
• Difference and
Analytical Engine
- invented by
Charles Babbage
- first
programmable
device that could
perform complex
operations
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
• Punch Cards and
Calculating
Machine
- invented by
Herman
Hollerith
- used to
tabulate census
data
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
• Mark I
- first computer-like machine built
in 1944 by IBM and Harvard
University under Howard Aiken
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
• ENIAC
- Electronic
Numerical
Integrator and
Calculator
- built at the
University of
Pennsylvania in
1946
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
• UNIVAC
- Universal
Automatic
Computer
- built and sold to
the US Census
Bureau in 1951
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
• In 1956, the invention of transistors
resulted in smaller, faster, more
reliable, and more energy-efficient
computers.
• This era also saw the emergence of
the software development industry
with the introduction of FORTRAN,
and COBOL.
A BRIEF OVERVIEW OF THE
HISTORY OF COMPUTERS
In machine language:
Sample Run:
My first C++ program.
PROCESSING A C++ PROGRAM
• To execute a C++ program:
- Use an editor to create a source
program in C++
- Preprocessor directives begin with #
and are processed by the
preprocessor
- Use the compiler to: Check that the
program obeys the language rules;
Translate into machine language
PROCESSING A C++ PROGRAM
• To execute a C++ program:
- Linker: Combines object program
with other programs provided by the
SDK to create executable code;
Library: contains prewritten code
you can use
- Loader: Loads executable program
into main memory
- The last step is to execute the
PROCESSING A C++ PROGRAM
• Figure below shows how a typical C+
+ program is processed.
PROGRAMMING WITH THE PROBLEM
ANALYSIS-CODING-EXECUTION
CYCLE
• Programming is a process of problem
solving.
• To be a good problem solver and a
good programmer, you must follow
good problem-solving techniques.
• Algorithm – a step by step problem-
solving process in which a solution is
arrived at in a finite amount of time
PROGRAMMING WITH THE PROBLEM
ANALYSIS-CODING-EXECUTION CYCLE