Professional Documents
Culture Documents
Programming Languages
Sarwar J. Morshed
Contents
Computer History
Elements of a Computer System
– Hardware
– Software
Language of a Computer
Evolution of Programming Languages
High Level Languages
Analysis-Coding-Execution
Object Oriented Programming
Computer History
1950's
– Large devices, accessible to few people
1960's
– Commercial usage emerges
– Operated by experts
1970's
– Computers cheaper, smaller
1990's
– Computers fast, small, inexpensive
– Owned and used by many people
Elements of a Computer System
Hardware CPU
• The "brain"• of the
Keyboard
computer
• Disk drive
• Scanner
• Mouse
• Screen
• Hard drive Main Memory
• Printer
• Zip-Disk • Data and •
Plotter
• CD-Rom instructions stored
• Tape Backup to, fetched from
Computer Programming
Languages:
name "add"
mov al, 5 ; bin=00000101b
mov bl, 10 ; hex=0ah or bin=00001010b
add bl, al ; 5 + 10 = 15 (decimal) or hex=0fh or
bin=00001111b
High-level language:
High-level languages are relatively easy to learn
because the instructions bear a close resemblance to
everyday language, and because the programmer does
not require a detailed knowledge of the internal workings
of the computer.
Analysis and
algorithm design
done apart from any
specific
Processing of the
programming
high-level language
language
programming
language
Structured Programming
Thoroughly understand the problem
Determine
– the output desired
– the required input
– processing that will occur
Divide the problem into sub-problems