CHAPTER 1.1
CHAPTER 1.1
PROBLEM SOLVING
& PROGRAM
DESIGN
CLO1 Explain the fundamentals of computer
programming languages in several scenarios.
The history of
Early programming C ompiler theory led to
programming languages
languages relying on the creation of high-level
spans from
mathematical notation programming languages,
documentation of early
and similarly obscure which use a more
mechanical computers to
syntax. accessible syntax to
modern tools for software
communicate
development.
instructions.
1.1.2 TYPES OF
PROGRAMMING LANGUAGE
BIN ARY C O D E
MACHINE LANGUAGE
ADVANTAGES
P rogram of m achine
language run very fast
because no translation
program is required
for the CP U.
DISADVANTAGES
A mnemonic to
represent each low-level It is a Low-level
machine instruction or language.
operation.
Assembly Language
A SSEM BLY C O DE
ASSEMBLY LANGUAGE
ADVANTAGES
Efficiency of execution as
the machine level
Easier to understand and Easier to correct errors language.Because this is
saves a lot of time and and m odify program one-to-one translator
effort of the between assembly
instructions.
programmer. language program and its
corresponding machine
language program.
DISADVANTAGES
A SSEM BLY C O DE
HIGH LEVEL LANGUAGE
¨A high-level language is a
programming language The first high-level
such as C or Pascal that
enables a programmer to programming
write programs that are languages were
less independent of a designed in the 1950s.
particular type of
computer.
V IS U A L B A S IC
HIGH LEVEL LANGUAGE
ADVANTAGES
M achine independent
High Level languages
Easier to understand
and the error
are human readable as and develop the
detection
instructions are written program logic in High
and correction is
using English like words Level languages.
and phrases. easier.
DISADVANTAGES
01 02 03 04 05
USING VACUM USING USING USING USING ARTIFICIAL
TUBE TRANSISTOR INTERGRATED INTELLIGENCE
M ICROPROCESSOR
CIRCUITE
04
1 FIRST GENERATION
These are low- level languages like machine
language.
2 SECOND GENERATION
These are low- level assembly languages used in kernels and hardware
drives.
3 THIRD GENERATION
These are high-level languages like C, C++ , Java, Visual B asic, and
Java Script.
4 FOURTH GENERATION
These are used mainly in database programming and scripting.
Examples of these languages include Perl, Python, Ruby, SQL, and
Mat Lab( Matrix Laboratory).
5 FIFTH GENERATION
These are the programming languages that have visual tools to
develop a program. Examples of fifth- generation languages include
Mercury, OP S 5 , and Prolog.
GENERATIONS OF
PROGRAMMING LANGUAGE
1 FIRST GENERATION
The first- generation languages are also called machine languages/
1 G language. This language is machine- dependent. The machine
language statements are written in binary code (0 /1 form) because
the computer can understand only binary language.
Advantages :
2 . N o translator is required.
Disadvantages :
2 SECOND GENERATION
The second- generation languages are also called assembler languages/
2 G languages. Assembly language contains human- readable notations
that can be further converted to machine language using an assembler.
Programmers can write the code using symbolic instruction codes that
are meaningful abbreviations of mnemonics. It is also known as low- level
language.
Advantages :
Disadvantages :
1. Assembler is required.
2. This language i s architecture / machine- dependent, with a
different instruction set for different machines.
GENERATIONS OF
PROGRAMMING LANGUAGE
3 THIRD GENERATION
The third generation is also called procedural language /3 GL.
It consists of the use of a series of English- like words that
humans can understand easily, to write instructions.
It’s also called H igh-Level P rogramming Language.
For execution, a program in this language needs to be translated
into machine language using a Compiler/ Interpreter.
Examples of this type of language are C, PASCAL, FORTRAN,
COBOL, etc.
Advantages :
Disadvantages :
4 FOURTH GENERATION
Advantages :
Disadvantages :
5 FIFTH GENERATION
The fifth- generation languages are also called 5GL.
It is based on the concept of artificial intelligence.
It uses the concept that rather than solving a problem
algorithmically, an application can be built to solve it
based on some constraints, i.e., we make computers learn
to solve any problem.
Parallel Processing & superconductors are used for this
type of language to make real artificial intelligence.
Examples: PROLOG, LISP, etc.
Advantages :
Disadvantages :