Documente Academic
Documente Profesional
Documente Cultură
12/5/2004
General Items:
Lecture 19 / Chapter 13
12/5/2004
Computer Program
Lab? Ok?
Read the extra credits
Need to come to class
Have a quiz / no books / use notes -> What is the big idea
School is almost over
Programming language
Reading Materials:
Miscellaneous:
Programming Language
Low Level
Machine
Language
Remember:
Ultimately, everything
must be converted to the
machine language!
F.Farahmand
Lecture 19 / Chapter 13
1 / 12
File: lec14chap13f04.doc
12/5/2004
- Machine language
o Only language computer understands directly
- Assembly language
o Instructions made up of symbolic instruction codes
o Assembler converts the source code to the machine language
- Third-generation language
o Uses a series of English-like words to write instructions
- Procedural language -> Programming instructions to tell computer what
to accomplish and how to do it
o Compiler:
Separate program that generates programming list (consists of
errors)
Program that converts entire source program into machine
language before executing it
o Object program
Used for execution later
o Interpreter
Program that translates and executes one program code
statement at a time
Does not produce an object
Source
Code:
Assembly/3
F.Farahmand
Compiler
3 / 12
F.Farahmand
Lecture 19 / Chapter 13
High Level
Assembly
Language
Procedural
Nonprocedural
Object Oriented
2 / 12
File: lec14chap13f04.doc
12/5/2004
Object
Program
File: lec14chap13f04.doc
F.Farahmand
4 / 12
File: lec14chap13f04.doc
Lecture 19 / Chapter 13
12/5/2004
Lecture 19 / Chapter 13
12/5/2004
o The structured programming does not explain how to keep the data and
program together
o Eliminates redundant programming
o No more spaghetti code
o Programmer can package data and program (or procedure) into a single
unit, called an object (uses the OO approach)
o OOP is event-driven
o Checks for and responds to set of events
o C++ is a complete object-oriented language
OO Programming languages
Lecture 19 / Chapter 13
5 / 12
File: lec14chap13f04.doc
12/5/2004
F.Farahmand
7 / 12
File: lec14chap13f04.doc
F.Farahmand
Lecture 19 / Chapter 13
6 / 12
File: lec14chap13f04.doc
12/5/2004
F.Farahmand
8 / 12
File: lec14chap13f04.doc
Lecture 19 / Chapter 13
12/5/2004
9 / 12
Lecture 19 / Chapter 13
o
o
F.Farahmand
File: lec14chap13f04.doc
12/5/2004
11 / 12
12/5/2004
F.Farahmand
Lecture 19 / Chapter 13
File: lec14chap13f04.doc
Lecture 19 / Chapter 13
10 / 12
File: lec14chap13f04.doc
12/5/2004
QUIZ
What is a computer program?
Why do we use Object-oriented programming language?
F.Farahmand
12 / 12
File: lec14chap13f04.doc