Pogramming Language Concepts 01
Pogramming Language Concepts 01
Lecture-01
by
Muhammad Haleem
What is a program
• A program is a set of instructions that performs a
specific task when executed by a computer.
5
Natural languages
These are the languages through which the human beings communicate with each
other. For example: English, Urdu, French, Pashto etc.
Programming languages
These are the languages through which human (programmers) communicate with
the computer. These are the most widely used mediums between the user and the
computer. Examples are C/C++, java, C# and so on.
The programming languages are classified into two types:
1) Low level languages (Machine Language).
2) High level languages
6
Low level languages (Machine-level Language).
Machine-level programming
languages
The programmer can understand more easily and enable the programmer
to write instructions easily using English words and familiar terms such as if
else, for, goto, +,- etc.
Background:
Computer software can be categorized into two groups they are
1. Computer packages
2. Computer programming languages
Computer packages are all the applications of computer developed by
programmers and available for use, for example MS WORD is a computer
application. Using packages user is bounded to the facilities offered by
those Packages. So users can not append some functionality from his side.
Programming Language Preliminaries
Programming languages or Computer languages are the medium of
communication for the programmers to convey their requests to computers. If
programmer needs a service from computer not available in packages then the
programmer use the computer languages to develop their needful
functionality.
Definition of computer programming language:
Computer language is the set of alphabets, digits and symbols known by
computers.
Alphabets are: a,b,c,d … both in upper and lower case.
Digits are: 0-9
Symbols are: {,},(,),&,*,%,#,|,+,- and so on.
Programming Language Preliminaries…
General Purpose:
C++ is a general Purpose language in which we can do
mathematical calculations and also can implement
some operating system and network algorithms. C++
language has also some rich features of file handling.
Writing C++ Programs
• The source code of a C++ program is stored on the
disk with file extension cpp. (cpp stands for c plus
plus). The program is stored in a text file on the disk
any text editor can be used to write and edit C++
source code-(program).
• We will be using Dev C++ for writing programs.
Thank You…!