BMS 201 Introduction To Programming 2021
BMS 201 Introduction To Programming 2021
Computer
programming
Introduction
Program - A precise sequence of steps that computer
obeys in order to solve a given problem or perform a
given task(s)
Programming language – A special software used to
matters
Maintains updated documentations and records about
organization
Handle users problem relating to a particular program –
user support
Generations of programming languages
First Generation – Machine Languages
Second Generation – Assembly Languages
Third Generation – Procedural or Problem
Oriented Languages
Fourth Generation – Non Procedural
Language
Fifth Generation – Natural Languages
First Generation – Machine Languages
Used binary numbers to code programs
1100011001110011011100011001
Programs were difficult to code and debug
Programmers were required to memorize
memory codes
11001 11111 11110 – subtract - sub
Executed directly without translation
Programs were machine dependent
Second Generation – Assembly
Languages
Replaced binary numbers with mnemonics to code
programs
Mnemonics are symbolic program codes for e.g. SUB
codes
Assemblers translated the programs into machine
language
Programs were machine dependent
Third Generation – Procedural
Languages
Greatly revolutionized programming
Introduced English statements in programming to make
coding easy
Programs were much easier to write and code since
perform tasks
Classified into business, scientific and multipurpose
languages
Third Generation – Procedural
Languages
Scientific languages - These are algebraic formula type
designed to meet typical scientific processing requirement
such as mathematical equations, iterative processing, matrix
manipulations etc. They include FORTRAN – Formula
Translator & APL -A programming language.
Business Oriented languages - are designed to be effective
tools for developing business information systems. They
include COBOL- Common business oriented language & PG
– report program generator.
Multipurpose languages - are equally effective for both
scientific and business applications. They include BASIC –
Beginners All-purpose Symbolic Instruction Code , Pascal –
Named after a French mathematician Blaise Pascal & C
Fourth Generation – Non procedural
Languages
Non procedural - Do not require specific sequence of
steps to perform a given task.
They are optimized for database manipulation by
to understand.
They are fast in execution they need no or minimum
translation.
They are difficult to modify, maintain and debug.
They provide facility to write programs at hardware
level.
They are machine dependent.
They do not use library of built in codes
High level languages
High-level languages are easy to learn and program in.
They are near to human languages hence easy to
understand.
Programs in high-level languages are slow in execution
hardware level.
These languages are normally used to write application
programs.
Machine independent
Incorporate library of inbuilt functions
Types of Programming Languages
C++
COBOL
JAVA
CSS
HTML
VISUAL BASIC
C
PYTHON
Excercise
Choosing any programming modern
languages of your choice describe them
in terms of:-
History
Features and Characteristics
Applications
Choice of programming language
Type of application - commercial or scientific.
Facilities required in the application – e.g. speed of
execution
Availability of the language
Availability of programmers
Development costs
Compatibility of the language
Maintenance costs