0% found this document useful (0 votes)
25 views

Pps Practical

Uploaded by

AMIT
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
25 views

Pps Practical

Uploaded by

AMIT
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 20
__|ntroduction to Progracscal [fo eee — Introduction to components oh a computer sy stern (disks, caemonb Processor, Where O progracr is stowed and exectited, operating System , cocapilers etc). i Progracsesing consists to distinct steps: a. Alogritheaic design ‘4 cod vg Revers Of Progracsesing _hanquages 2 Ha a. tachine Language i e _b. Aisecably Language aa = Cem tig a iey ela Cage Progrocresing _enviorncrent $ 4 a ee || créating Qnd_ cunning Prograca takes place In 4 steps ia Writing and editing the _bragract covapiling 2, = g_tinking the progracs “with the required library. junctions. 4 _@ ae Executing the _prograea. Fa: | 4, writing and editing the program : ia W Software used to “orite QO __brograces is KNOWN as teet - a Za -itor, here You can tybe, edit and stove the data. 2 > You can write a ¢ progracs In text editor and gave ¢ _—— = - ile on to the disk with “sc” extension « This tp Called source hile. 2, _Cocapiling _ brograca! f Wer lp Used to convert high level languages into the > dt _coutd “ complete its task tin 400 peeps: Q. Preprocessor o b. Yeanstator Preprocessor? ates D Jt reads the source tile and Checks for Special cocrcaands WN as Preprocessor cocaaands Lingtrvetions which star with # Symbols) 2 fs B® Ihe result of breprocessor ig cated as Yranslation unit. > Preprocessor Processes the dcurce file belore cocsbilation onty. Transtator: ae kas | I> St is a brogram which reads Iranslation unit aod converts the __brograca into _trachine fanguage Gnd give the object crodule. Im his caodule ig mot ready to cun because fb does nok have the required ¢ and other guinctions [nduded- S Bs Ainking Q_Prograca with required Library junctions: BC Progracy Is cande ub of dillerent tunctions ta which soae |lkunctions can be weltten by the brogracicers other junctio Like Input/ outpul junctions and _crathe eaatical Abrary functi that tzists elsewhere and ciel be attached to our program, [A Linker asseeables all o| these junctions ond breducer th jexecutable bile which | ready : ig 4. Arrecutling | _ ee = SB ae tp eendy tor the execution ae DS as MAP eM" Noo you can execute the brograca by Ufing Cun Wescsand. > toader Ip a brograca which lp used to toad the brograrn froca the digk to ciain _cremory- ee oa _ewWrlting and Running Programs: é = 4, wette a rogract (source code) using vi_editor ard Save lk with -c extension. Ex: $0i somble-c 2. Run €oeabiler to convert a brogract into to “binary” code kx $cc Sacaple-c 3. Coubiler gives errors and Warnings Ik any, they edit the Source file, bixthy and re-cocspile.— Dignuin Ne andes tei putputs oe ex eau. SnUs0s Stls an ordered sequence of unacabiguous and well debined Inst Tuctlons that berlores gocie task and halts in finite elese. — [Properties of Alogrithe t _aFiniteness @ Debiniteness @ Ehheckiveness @ Mrenerallty © Snbut) ouepere |Psuedo code: a ee Snglish Like statecaent that 4ollod a loosely dekined syntax nel are used to Convey the design 0h an a@logrithm. PSeudocode ig Socseticag Used as @ detailed step tn the process Ob developing a brograca. || Ftowehort + 2 is a pictorial representation Ob aN Algorithm is Called {lowchart+ Or, mA _diagract that- Wes graphic symbols to depict the nature and flow ol the steps tn a _ process. = : the blow chart Syrnbol are Nnked together with arrows | showing the process blow direction. 4 Rules to draw blow chart + a a e @ Analyse the inbut, Process, storage and output ob brogram. ES euse standard symbols and arrowhead to the direction of b1oW ot dau Me [ewe should use easy Word which can easily understood. —_| adhere should be a List ob Activities inside each symbol. @ St should exbress all sectton Like Input » Procas, logical, output. gt shoud be ary Prograracaing tarqege Orienkd, Practical 2_ a, Bowchart and Qlogrithes to check the input nucsber _| Ig even or _odds-_ Algorithes: Step 1: Start _ Ste 2: (take inbut) Read :nucaber Steb 3: Check: i nucaber 42 ==0 then Print; N is an even auecaber Else Print: N 6 GN odd mucaber Steb4: Exit Step 2: dnbut two _nucsiber_ a,b Step 3: Tharb then i disbray '@” tp the greater nucsber. else, disblay 6” ip the greater uesber. Steb4: _Stob or

You might also like