Programming Fundamentals: 4.00 Credit Hours, Fall 2014, Undergraduate Program
Programming Fundamentals: 4.00 Credit Hours, Fall 2014, Undergraduate Program
Programming Fundamentals
4.00 Credit Hours, Fall 2014,
Undergraduate Program
Instructor: Maryam Ehsan
SESSION 1, 2
What is computer?
Computer
Computer programs
Hardware
Software
Computer organization
Input unit
Output unit
Memory unit
Computer languages
Assembly languages
LOAD BASEPAY
ADD OVERPAY
STORE GROSSPAY
Translator programs called assembler were developed to convert assembly
language programs to machine language programs at computer speed.
Programming Fundamentals by Maryam
Ehsan
Computer languages
High-level languages
Similar to everyday English, use mathematical notations
(translated via compilers)
Example:
grossPay = basePay + overTimePay
C++ ,C# ,PHP,VB are the widely used high level languages.
Some other examples are
FORTRAN (formula translator)
Used in scientific and engineering applications
COBOL (common business oriented language)
Used to manipulate large amounts of data
Translator programs called Compilers converts high-level
language programs into machine language
Programming Fundamentals by Maryam
Ehsan
Edit
Preprocess
Compile
Link
Load
Execute
Editor
Disk
Programiscreatedin
theeditorandstored
ondisk.
Preprocessor
Disk
Preprocessorprogram
processesthecode.
Compiler
Disk
Compilercreates
objectcodeandstores
itondisk.
Disk
Linkerlinkstheobject
codewiththelibraries,
createsa.exeand
storesitondisk
Linker
Primary
Memory
Loader
Loaderputsprogram
inmemory.
Disk
..
..
..
Primary
Memory
CPU
..
..
..
CPUtakeseach
instructionand
executesit,possibly
storingnewdata
valuesastheprogram
executes.
C++ programming
C++ program
Bug
A mistake in a program
Debugging
Program Errors
Syntax errors
Run-time errors
Logic errors
THE END
Thank you
10