PGDIT 101 Introduction To IT and Programming - Lecture 1 Program & Programming Languages
PGDIT 101 Introduction To IT and Programming - Lecture 1 Program & Programming Languages
What is Software?
The term software refers to the organized sets of instructions that tell the
hardware what to do.
The finite set of instructions that the computer follows to solve a particular
problem is called a computer program. Collectively, the group of programs
that a computer needs to function is known as software.
Classification of Software:
Software can be classified into two broad categories: These are
i) System software
ii) Application software
System Software
System software directs the internal operations of the computer, such as
managing the input and output devices.
This software does the basic functions necessary to start and operate a
computer.
It controls and monitors the various activities of a computer and makes it
easier and more efficient to use the computer.
Operating system is one kind of system software.
Application Software
Application software directs the computer to solve specific user-oriented
problems such as preparing payroll, preparing electricity bills, creating your
curriculum vitae etc.
Microsoft Word, Microsoft Excel, Adobe PhotoShop, Internet Explorer etc are
the example of application software.
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 1 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
What is Program?
The finite set of step-by-step instructions that the computer follows to solve a
particular problem is called a computer program.
Some programs (called system programs) direct the internal operation of the
computer while other programs (called application programs) direct the
computer to solve specific user-oriented problems.
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 2 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
Machine Language
Every computer has its own language that need not to be translated. This
language is called machine language, i.e. the language in which binary code is
used to write a program.
The computer understands this language directly.
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 3 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
Assembly Language
In machine language, the sequence of program is represented by binary
numbers.
Hence, to write a program using this language is very cumbersome,
moreover, it is very difficult to make even a minor modification as the
program sequence has to be changed.
To alleviate this difficulty somewhat, assembly language may be used to write
programs wherein the sequence of programs is represented by symbolic code
called mnemonics.
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 4 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
Source Code:
A program written in high-level or assembly language is called source code of
the program.
Object Code:
Any program not written in machine language has to be translated before it is
executed by the computer.
Translation of source code into machine code is called object code.
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 6 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
Problem analysis:
It requires that we understand what we are being asked to do and identify
the information required to be computed and printed.
Algorithm development:
After analyzing the problem and identifying the input/output data, the
problem is formulated into a carefully constructed list of statements called
algorithm that describes the sequence of manipulations to be performed in
carrying out the problem solution.
Program coding:
After developing the algorithm of the problem, it is then coded using a
programming language that will make up the program.
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 7 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
What is Algorithm?
A well-defined finite sequence of steps or instructions for solving a particular
problem is called algorithm.
There are several algorithms or strategies for solving a given problem.
The time and the space an algorithm uses are two major measures of the
efficiency of an algorithm.
An algorithm should be sufficiently well structured and detailed, so that it can
be easily translated into some programming language such as C, ForTran,
Pascal, Basic etc.
Complexity of an Algorithm:
The complexity of an algorithm is a function describing the efficiency of the
algorithm in terms of the amount of data the algorithm must process.
There are two main complexity measures of the efficiency of an algorithm:
1) Time complexity
It is a function that describes the amount of time an algorithm takes in
terms of the amount of input to the algorithm.
2) Space complexity
It is a function that describes the amount of memory (space) an
algorithm takes in terms of the amount of input to the algorithm.
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 8 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
What is Flowchart?
Pictorial representation of an algorithm is called its flowchart.
Flowcharts are composed of symbols of different sizes and shapes.
The shape of the symbols used in flowchart determines the kinds of
operations being performed.
The size of the symbols has no effects on its meaning and is determined
by how much is to be written inside it.
Purpose of Flowchart:
The symbols used in flowchart are simple and easy to learn.
Flowchart has many purposes:
i) Provide communication
ii) Provide overview
iii) Aid in algorithm development and experiment
iv) Check program logic
v) Facilitate coding
vi) Provide program revision
vii) Provide program documentation
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 9 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 10 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 11 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY
PGD-101 (Introduction to IT and Programming) FOR PGDIT JULY 2016 INTAKE
Assembler:
It is a translator program that converts assembly language into machine
language.
Compiler:
It is a translator program that translates the entire program at a time written
in high-level language into machine language.
Interpreter:
It is a translator program that translates and executes each line at a time of
the source code program written in a high-level language into machine
language.
*******************************************************************
PREPARED BY: K M AKKAS ALI, B.SC. (HONORS) M.SC IN CSE PAGE 12 OF 12
ASSOCIATE PROFESSOR, IIT, JAHANGIRNAGAR UNIVERSITY