Types of Programming Language
Types of Programming Language
Date: 05.09.2023
Properties of Algorithm
• It should terminate after a finite time.
• It should produce at least one output.
• It should take zero or more input.
• It should be deterministic means giving the same output for the same input case.
• Every step in the algorithm must be effective i.e. every step should do some work.
Characteristics of Algorithm
• Clear and Unambiguous/Definiteness: The algorithm should be
unambiguous. Each of its steps should be clear in all aspects and must lead
to only one meaning.
• Finite-ness: The algorithm must be finite, i.e. it should terminate after a
finite time.
• Feasible: The algorithm must be simple, generic, and practical, such that it
can be executed with the available resources.
• Language Independent: The Algorithm designed must be language-
independent, i.e. it must be just plain instructions that can be implemented
in any language, and yet the output will be the same, as expected.
Characteristics of Flowchart
• Easily understand the purpose of the program.
• Helps diagnose program errors.
• Assists in program writing.
• Assists in program modification and enhancement.
• It helps in writing complex programs easily and concisely.
Rules of Flowchart
1.Flowchart should contain conventional symbols.
2.Arrows should indicate flow from top to bottom or left to right.
3.When designing, the fewer the connection symbols, the better.
4.It should be easy to understand.
5.It should not be written in a specific programming language.
6.Multiple flow lines intersect but do not imply any logical relationship between them.
7.Designer must use separate flowchart for parts of one flowchart that requires detailed
description.
8.It should be drawn on one page as far as possible. If more than one page is required,
the previous page should be marked as used for the pre-determined process.
What is a programming Language?
• A programming language is an artificial language.
• Designed to communicate instructions to a machine, particularly a
computer.
• Programming languages are used to create programs that control the
behavior of a machine.
Machine Language
Assembly Language
The program written in high-level language is known as a source program and the
corresponding machine-level language program is called an object program.
They are slower, and do not utilize They are faster as the program can
CPU or memory effectively directly control CPU and memory
Detected errors in the program get Detected errors in the program get
displayed after the entire program is read displayed after each instruction read by
by compiler. the interpreter.
The set of instructions and statements The machine language program produced
written by computer programmer using a after the compilation of the source code is
programming language to find solution of known as object code or object module or
problem is known as source code or object program.
program