2. COMPUTER PRoGRAMMING
Compuler proramming Is he proca , perrna a
Paahtule Compuahm (or aenerally, attmp'I1Shing a spulge
CompuhnA Tesult), ually by desicninga and buildjng an
Y
e Luabla toopukr pngam. Proqramminghnvolves aska such a3
Analysis,Generahng algoithms protiling algoridnmsaunay
and res0uRte Com Sumphon , and the mplermenah m 9 algorithms
ually in a chosen Pagramming lanuaga,commmty rred
a
Coding). The souRe Code g a pogr mis wntlenin one or
more Rangugs hhat ase inelligible b progammers Tafher,man
machine tode, which is divecHytéxicukkdby hhe tunhralprotexing
unit (pu)
The pup o male he pegn
hepupose q pngrammmgis ind a sequona
ins
trucmu that wil aubmale he pertomanu q a kak(uheh
Can be as complez as an operahng syslem) om a (ompukr oen
YSolvina a given prablem Atis most basi, Compuer
PYoqramming
is hMa mre than a set q
inshuehons oaulilala
speco e
achons. Based on he requremenls or puposes q fhe3e
insuchona, Compuer proqrammng can be as simpla as adding
hwo numbers.
1tan also be a conmple as Teading daka rom
e mperahuae
Sens0r1 adjust
a fher mo Slat, Sorhna data b Coapleke
inhitak Scheduling or crihcal repork oY taking players through
mulh layered
worlds and challenges
in qamey.
Dr. Cheryl frederick, exatuhve direcor q STEM Pograms
a Southern Ne Hampshire University SAlHO) .
Said tomPuer
Programming
is a tollaborakive pracess ifha varieky
poqammais con i buing duuing me developmenk a pieuy
So4tuware. Some that development Can lase decades.for Sozhware
lite Micraso{t wod heleased in 483 or ihsane , proqrammers
have bean hweaking and iproving it for qears
ars
3. hlhak is a frogramming Language ?
A poqyammng lanquaqe. is a wa or programmers
(de velopers) b communicae wim tompülers. Proqramming
anguages consisk a Se rules tha allowgishina
Valug b be tomverlkd inp vaiiOus ways R nerahng9 nachine
Code, D, in he ase q visual pragramming languages grophital
elemen. Chenerall peaking, a proqram is a Sek q mshucBons
wiHen in a paahtalaanguags (C, C++,Java, Python) h
achieve a paahtulaa tast
Proqrqmmina lanquag dekjne and tompile a seFa
insucho or theCPu cehol prausing Unit) tur pertmia
a
an Speui ask; Evevy Pragrammimg language has aseEo
Ceqwords alm wim ynBaz thaPitujes r Creaing
inshructoms.T nou thousands Programmina Janguages
have Come 'np ormAll thenm have theirounpeuic puposer
All g thee languagos hav a variahon im k1ms q the level9
abshachm mat mey all povide qom he haud ware. A ewq
these languages provide jess or no abshackon atall, while
the othes pYovide a ver high abshathm.On the basis y this
level g abshach om There ae,wo fypes Programmng languases
have
these
i) Low LeveL LANGUAGE
iHGH LEvEL LANGUAGE
) Low level language
A low level praqramming language s a Prgra mming languaae
that povida litHe or no abshachm o a tompuler 'singachon
9et archikctuae CH's an abshact modely a compuler -
commands
0r kunchomu in The languoge mab thatare shuthuually similar
prow SSr's inshuthons BecaUAe 4 he low absrachn bthvean
he languaas and machine languag, Jouw level languages
are Some hmuy dBrihed as being "close o he haxdware"
Low level language Can tonvere machine Code uwtfhouk 4
Conpier inkrpreler
4. *h are also called machine level languagas-
Machiny Can esily undersandit
Oe bugaing them is very diticute
*hay are not very2a4 under_Band
Y
Al Ahe languages (ome wih (ompler mainknanu
are not porable
These languag depend on machines. Thus one Can run it on
Varios plaktmma
Thy aluwa require agemblers r hanalahing inghuchomg
*Low level languagu elo not have a very
wide appicahm
hda's hmes
Low level language are Mainly clasiged înb hwo;
1) Machine languag
a) Asembly langua
1) Machine languae
- Machine undersands fhe language
without hanslahn
-1E's known as tirst enerahm p amming language
Machine languaga has hwo paik The irst patis op Code
cwhich de jne
wnat operahom 0,bePetorme d Cadd,Sub,moe)
The Secmd paik is operand
whiçh definu hhe vasiables ued
paor mina
operahoma,,
c, *, y)
2) Asse mbly language
I u e alpha numerie pne u mahc toce inskad bs k
provide pseudo insuc6ony
E Add a,b;
Mov a,b
IE's also tnown as symbolic Tanguag Sinu îtuses leHer
and symbols inslead y numbers
It's also known as etm d generah m programmng language.
A program
wrnten in akembly language is tnownas akembly
anguage Program or Symbolie kanguase pngram
5. i) High level langung
A high level lanquage is an pogramming languase that
enably developmant q a praqram in a much moe uer tnenduy
Pragranmming t onlext°andisgNeralyindependehkqtne
Compuer's hardwqre architecture. Y N A
A high level language haz a higherlevel q
qbshathom þom
the compuler, and kotues mre onthe Pogra mrming logic rather
fhan ne underlying
haadware componènk Such aj memory
add resing and Yeq1sler uhlizahon
High-level languages a re designed
be
ued by The human
pera orthe Prrqrammer. hu qre reletved o ajeloser
humag In o hheywnrds, their prrqrq mmlng Shyle and lonezt
is easter to lean and implemet tman low lëel languoes , and
1he enhre (ode generally ocuse
on fne spe tahe Pro9ra m b be
Crealed
A high level languaga Aoen e Tequire addresima hajduware
Comshaina hen oleveloping a prgram
BASIC, C/ c++ 4Java aus
popular ezamples of high -leve
langua
Widey wsed and poputar language
in bday 's hme
4One can easily inerpret and tombine he htoh-lewet language
as compasud Bo the lou level languags.
h
OL very 203y o undersand
Such languages are pragrammer-ritndly
Drbug9ina
is not very diicult
*Tn (ome with ea4
malnknanu
And au huy giple and
managable
One can easily run hem on dieunt platoTm
T h Yequive 4 Compiler |interprekr
or harslahm ihb a machine
Code
A user can poyk fhem Yon dne
locahom b anohner
* Such lanquog have 4 low eicienuy mamy So it
Cnsumu more memry
a n he loLs-
level language.
6. frogra mming Language Ct+
Cttis a programming language which developed ab ATT
Bell labavaarie n eaaly 480 s
by Bjaine 5housrup
He made ct+ by addig theeaures Simula C+langugs
in C languaje Y
Clanguage is a qeneral puapose Programing nguage
developed in 1942 , and skIl quik Popula CisveH pouwerAuls
Ihay beon used b develop operakng sskms, daabases and
pplitahooy ek.
C t t is a Cros%- plaffom lanqucge that Can be wedareale
high Performanu apphecabors
-
The language waa updalkd 4 ma) Hmes in 2011, 20 14, 2014
nd 2020 o C++|1,C++|4,C++17 r C++20
-C+Can be kound in o day's perahng Syslems Graphical
User In kr|aas
and
embedded syskms
-
C++ is an objecé orienked }rogramming la nguage cuhich 9i ves
clear ghuthue h programa and allows code b b hewsed,
dwe rimg developmene Cosk
C+ is un and tas d leam
- C t s a generalpuapose lanquage ie, itis used o prayram
fYa wide range q heedda tke 85em 3o/tuare pvagmmmina,
high pe rformanu client and Server SofwaTeAVideo qamas ek
lEis ekicient and porable , o, i E Can be used a wik
mgrams
which could be CaTried around and inoduud
in anoBher tompuei Byskm qor woTking
1 t is platform imdependent and is (ompaa ble wimC
Poviding a 3mooth hangihn dom Cpngrams
-
lE is desiqned b unchon without a phishcakkd programnimg
environment
Ctexecuhon begins at main ().
Every Ct+ prngram musk have a maìn ().