ENGR112 - Lecture 2
ENGR112 - Lecture 2
of Programming Language
Hardware Software
OS Applications Translator
CPU I/O devices Memory
CU ROM
Compiler
Hardware Software
OS Applications Translator
CPU I/O devices Memory
CU ROM
Compiler
n A Linker combines
n The object code for the programs we write
and
n The object code for the pre-compiled routines
into
the machine language program the CPU can run
How to Translate?
What is a program
n A set of ordered instructions to perform certain
task
2. Read a and b
3. Compute x = -b/a
4. Display x
What is a program: Example
(cont)
n Program Implementation (coding)
n Program Compiling
n Program Execution and testing
n Why “++”
n C++ means: new C= old C + 1
Why C++?
n Not So Good News:
n C++ needs a lot of practice to learn
n Good News:
n Lots of good-paying jobs for programmers
n Many problems can be solved in different ways
n C++ allows a programmer to express their ideas at a
high level as compared to assembly languages
n C++ is widely used and taught
Who Uses C++?
n Computer makers such as Sun, SGI, IBM, and HP
n MongoDB (Big Data NoSQL database)
n Computer chip manufacturers (Motorola, Intel)
n Software companies
n Banks
n Telecommunications
n Universities
n http://www.stroustrup.com/applications.html