0% found this document useful (0 votes)
17 views51 pages

ST Joseph ICT Practical

The document outlines multiple lab works conducted at St. Joseph Higher Secondary School, focusing on programming tasks using the C language. Each lab work includes specific programming assignments such as calculating the sum and average of two numbers, determining if a number is even or odd, converting temperatures between Celsius and Fahrenheit, finding the largest of three numbers, and summing a series. The document provides examples of input and output for each program, demonstrating the expected functionality.

Uploaded by

saiefsupreme
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
17 views51 pages

ST Joseph ICT Practical

The document outlines multiple lab works conducted at St. Joseph Higher Secondary School, focusing on programming tasks using the C language. Each lab work includes specific programming assignments such as calculating the sum and average of two numbers, determining if a number is even or odd, converting temperatures between Celsius and Fahrenheit, finding the largest of three numbers, and summing a series. The document provides examples of input and output for each program, demonstrating the expected functionality.

Uploaded by

saiefsupreme
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 51
BEER E EEE EE SBESBESE SRE SEE EEE EE St. Joseph Higher Secondary School Lab-work No. 1 Name of the Lab-work: Write a program using C language to find the sum and average of two inputs given by keyboard. Name Roll Section Group Date of Performance: Date of Submission : EER BEBE HEE REBERBR BERBER BEER EE @ [og: att TH AH CIM Bs SWAY coe FTI TIN! Age go cit CUT T(E IATA MET ANY are, “cypmenel “a “CAE IE ITT SI eT ste AIA He “at rte: |* RICCO att 7 Ory * Auteur: wiornstCs fnUeA : Windows 10 STAI HYCEUTS + catePlocts eae ge TH iba gagt +4 ' il rae & aca FAT ots W GTA SISA RIT YO aie tht | rl vib: BEEREHEHEEESESESE HE SBE RB HERE ERE A Output: sumB&avg.c Waa wma wer Run PACA SI cA FATT Screenshot a Wot Cre! CAs Command Prompt Enter the first number: 18 Enter the second number: 42 Sum of 18 and 42 is 60 Average of 18 and 42 is 30 Process returned 0 (0x0) Press any key to continue. — ee eS wean; [nae HI TAIT TAY Fyfe rrasyeat bale phat og. ow cca snr 4 | We wig GD CONTA ONIATA TAG start PN preggrams> [CodeBlocks -@ rq ah “WT CateRiackss rargrat pA at Ui) CodeBlocks <] amdow TH Filesnew>Fmpty fle Adter age RW eat] diftteanctet TA wo A FARE ET Gait GIST: indo I Oa Geta Gene eae ENE mC) \ Ht inalude main ml a,b Float sum avg’, Print enter the frst number’p seant("nd!, £4); prinf ("Enter the secanmd number”); sean (ed", bb) 5 SumM=ratb ', avg = sumy2 5 . print (sum ocd 15 “ENO, a, b/SUT) 5 print ( Bre nage of xd 3S YE Nw" ab, 40925 return 05 3 DF ae BEEBE E EEE ESSERE SBE EEE EE B THaaTT: i) ais WA A seve as agate Adter TH Kida swe ile as hrTa aR ve file 9S Cae “Keay mbes ATA CMC Programe! TA OK silt BY Fie AISTAT Aetentim (2(HW +e “ae | Napier : Build CJS QT HN Build wos for TH SUNT uefa OND BT al q C THE AY aM WHE werge FU | IGT ene ANITA oT A MNET -gHO AT | SASL Build A zw Run optim -4 NMS we ee trifle FRY HATS AU! agate ga save qq ed ay Frage arate ct TT BHoeoeEeHeaeaaee eee eae ee eo — St. Joseph Higher Secondary School Lab-work No. 2 Name of the Lab-work: Write a program by using C programming language to find a number is even or odd. Name Roll Section Group Date of Performance: Date of Submission : tt eR ERC EE Ea ee ey Oy: STU ASeor MHS AC Ae COS ad oT FLAT OY ASML 2 Ig CET AT SINR (SW “TTY “AO! Gina BIA © (4 AsVTTe aw wpa soar ft {ny adi TAR: IeGITA: aq WAST “MUG UT: tetas fNUITA: Bindoss 40 wrfqrary jutiaary cateBloe ko Water: ae 9 | Dane i | i) fest WAAL ko youn Paty Oa Prggrams>CadeBlacks 6 “fet “OW “ATA codeblacts ‘ragran PARC \ Gi) @odeBlocks GA Wirplow ar Ailes News Emy fle fad 9 FC pq omy aft Keta aintow aan 0 Gra Gra tare Age arate FAM AT EER EEE HE ERE BBE SE ESE SESE ESTE SS “ qm” 4 lwlude nt mains v the numbee to be tested"); .& num); Caumy,2 = =6) MO (nd 1 Prin (dhe umber x4 1S am even number,\n" num); else t | Print the numberzd iS on add qumnber. eK sR ome THIGAREE CON NANT A saMe off ondtgl ROE c= 2-30 HET gets TR Ag! 2 RA eet oly | baw af UIE Geni) [Tron cheow ay, / Nipat_cheose swtnperatyne seu / | LA > | ~ \, Choase 4 s | 5 oraz | eat] input £ (eect) Lege ame / prine @/ —— NAS: atgaret MA TRE IA) fAyea Toga MINA “ag! + RTT DT OMEN oI ay aay, “aie | tk GHUT SINT start Programs oe (TT CH TV TET codeBiocks GAT ble ae \ cadeBlocks A Girdow TUG Filepwamey Emby Ale Arty ct ata ant EH Coog CATO “AIAN “Fite Z| \HEEEER BEE ERE EEE OB Zuauanu tu casa ine 5 i | im choiees float, + Cy POOF (ohonse on iNPUL type wn’)y Prin S\n")y PINE (C8. Eahineg hein Ys PRIM F'n Frlee your eholee") ; Keant (ry 4 f choice); Hf (choles = « ng PONE C'Emter Temparature in fohrenheil ); seant (ZF " FFs Crh s27t 575 PRIN converted emparsture in Celsius: %.2C a, ¢)5 3 else § PPINLT Enter Temparature in Celsius :)5 beanf nf" 8O)5 Fe(ersy5)432 Print (Cecnverted Tempacature in Fahrenheip: 9.20 \n"A)5 g meLlupn 0}, 8 PARTON! (i) fe Ale menu zt We of omaratt AG af : (DANS se file as ort WOH se fie EERE EBE HE EEE HE BEE SE EEE SESE se Output: TempConvert.c waa enea aca Run sac or ficoa GANItAT Screenshot 44 40S] OMT TCAs Command Prompt * Choose an input type: 1. Farenheit 2. Celcius Enter your choice: 1 Enter Temperature in Farenheit: 122 Converted Temperature in Celsius: 50 Process returned 0 (0x0) Press any key to continue. Command Prompt * Choose an input type: 1, Farenheit 2. Celcius Enter your choice: 2 Enter Temperature in Celsius: 50 Converted Temperature in Farenheit: 122 Process returned 0 (0x0) Press any key to continue, ——— —™ St. Joseph Higher Secondary School Lab-work No. 4 Name of the Lab-work: Write a program by using C programming language to find the largest number from three numbers. Name Roll Section Group Date of Performance: Date of Submission : EERE EER RE ee eee ee a Cf SU) Sra woly aq sae Gee S| s & ayy ohn nef bl 45 Iq eu ap ot Pie : Short) | a Liu abe/ Ne i PWT > skort hl ream) oe a TH NAT 8. u r renee aindrow © aera fer? SS OS ee Fog: — OT fel jean ana be ) Ww “Heat 14 NOTA AIS AW) gray a . in a as Ww “Atyagitt Ay zd Many: + seat aft ered snptours: eraruahes Giada: wi an S WATE: Witrtowns 10 Water ANCE YTS : coderlocts csgret 1a Day og bb texte At Age “AW | Wid -amy ogre fgohe semis ane «sf PO By xa, Hep ei ~ AY! AI a, Sq a OWN! Dae Hea vary SITS we “KP @ Sn a, aay semht vind “SIT Wy-9 ANT QU 41 rE seyntt gare Gs Sig J-4 “V0 ‘ TENA Wo hale saregrtte SHE sas? ot aca, geet Feentt, gene B} WU-6 a ASEH Stay uistetT ATA PANT program no 3 fai ab qty {qe afi © COMIAT Extention gay .e qe zy “emit! / Build GG (FT TW sud CAFS TA "TH ved] APhIF “Gea ails gett THEA AT GAT ATWS FAD AW Sag Build CH ZO Pon-4 Tet TO Bo oriay etre Ho gy ee eH THN rey aaqed TAN OT TT PARLE ( Input 3 Imeger Number "5 ni raed a hed b.&o); loviner . - "oy: jeri d 15 the largest number, >); [else if (bya Ad bye); Print (44 Ts Whe longest qumben, b); else a: Prine (%4 iS Ake lngest rumbcr, °)5 geteh Oy 3: AYN! File THF TAT Save sub AZ AW seve AS GITAS “CTY ATNTT TAG Pregrom NOY AW FSA A "Te! / Bulla © fq “vor Build oma FFT aa cant TAZA BS CHEM “GUS afte 20 1 -aTAT GRE diel ST TOTIGH oAD CATO | Po aE E EEE BEER EET Eee eee ee ae Output: FindLargest.c W2"% se @c2 Run 220m & os OT Screenshot “# Command Prompt Enter the first number. 18 Enter the second number: 42 Enter the third number: 55 55 is the largest number Process returned 0 (0x0) Press any key to continue. BEER EERE RETREAT ee eae qm yantt euUe-(4e xe a | Batld aig? (Qt “tM Pun xeqanlt “(fT TIT ZIV GHG save qa Ra 4A jhe patel — (UST BEE EEE SEEREERBEBE REET ETE Ee a St. Joseph Higher Secondary School Lab-work No. 5 Name of the Lab-work: Write a program by using C programming to find the summation of following series 1x 2 42 X 343% At cece +Nx (N + 1) Name Roll Section Group Date of Performance: Date of Submission : [eqs Sean Fo WMT OT n Gq “AA Anput ee S88 Aor 0p oat yr ee Sats x24 2x34 aug... ptr) Paina AN TIW -xU¢ Pee eiseon oat feds | * AUCGTT: oeaits. firCAr : Windows 4 SATAY Et FaTy « cadeBlacks . 4) Yh Ss! id) Fat a IZA TH Ti). sum =nunth O42/2 Ay TF | ID prmt sum 1 v) wp ~ThF) BEB BERBER BRE BBE BE SBE SBE SBE SE SBE EE Ee me (o : ataapate IAL THI pregyrams > corkeblochs 4 og anid “el eadeblacks “CqININ bly Vd) * VIKAS ler new) EmLy file (AGT eld Wel TAY gE Felg aivina GANG | “OA editar mm ~ agate fame a! GUIQTAY 4 include YA -rnaint) Mt int, sume 0 5 Point /Emter the value of ns"), soon ("%d", 0) 5 Hor (ina Ken 14) Ssum=sum | (CAD) 5 Ig Point ("The gum of n number of terns: d\nj sum; return 6 5 3 WY TEPA : ee cement. “ANG save ~ 4 TYG Fae Save ds oarat WY OTN | L Output: series.c WiRae sna Fea Run Fat & os TAT Screenshot 4% 3Cel C*1 TCA? Command Prompt Summation of the series 1x2+2x3+3x4+...4+Nx(N+1) Enter the number of terms (N):5 Summation of the series is 70 Process returned 0 (0x0) Press any key to continue. Peewee ew eK eC WE St. Joseph Higher Secondary School Lab_work No. 6 Name of the Lab-work: Find the GCD of two Positive number inserted by keyboard, Name Roll Section Group Date of Performance: Date of Submission : BBR EBB EERE EES ESSA e ee wf et Sis AE ar we weet H WATE wet GAS Fear Build swe fe Ter NG) on Fo -@ ee iia VAT IY allay GIST Wu, Ot eT ot HITE Sante oy -cosme | xaos SH TW Taw aq gagiy Butld Age Ta “AT Pun olaary ‘(yt TO ROT WR eerL+Fio VAS A! TAA “YT | 88 ST Prana N06 ATT _——— Te ls <—— SINTI. PySts TY “gg Tyee Car At ¢ ANI IT ges 3 yogny AN A, Gisay9 WW 201 ay za Tt RW ANY] BaSI SINISLS A | Vam(s : , eSUTT: ant chats | indows 4 j eTC ST ter QUO | PARC agteaTa seat pee: Day ay tana welt Zagt Be at ang A Hid “a6 SSSI GAY AS 4 ts An afi (Ww) += 125 aaa tamu | WO LAWS BSS HAT BAT VIA=9 5 m ees ay WV) | GUA =A ‘ayy Gy) : at | VID 5 pATS AA hip THe OT — =a a LSE ee 2 ee PS AN Pa lire: ae | L ps7 No : , weaRe : a ae FHT tay Arps Tage . tn WM CHA AA 7A Start > Prgms CodeBlocks -G WT codeBlocks ata er min © VAI file> neay file FE We oh Gre Gey aintow “ene \ * Say Sets wiwiod To aIgATt fers qt ——_— — oo ——_ — — - —— = = =—= = a an sae W Welude re re 7 CAISTa po Output: 8cd.c FRAT ee cq Run am Frees orate Screenshot 9a 3731 CM Ie Command Prompt Enter the first paiTaberr 18 Enter the second number: 42 GCD of 18 and 42 is 6 Process returned 0 (0x0) Press any key to continue, Ne “TAN EE : Build “AIS click qn putld w(oaTet Ae WHS RA carat -qaarta re CHAT “NS “AS Ad 1 -qIRT ARG Ol Agents Gay TROT SAT Fun area “fee -ogr arta WGIT sae -gq7 RG ger FAT aT TART COUT St. Joseph Higher Secondary School Lab-_work No. 7 Name of the Lab-work: Find the LCM of two positive number inserted by keyboard. Name Roll Section Group Date of Performance: Date of Submission : EE BEBE ERB ERR SERRE RES ee HPS uBy Aga otf BW eZ NO oD! _ BIC SSO IG) amg. awa gay fl Yaa sty atten * fom ome a 35 fy? “ulm QA SORA TRIKE BS apeyis ang. RMIT Ed speyn wan: a RISTUTL: GET ASOT | HCTMS: wornatt’y Firagar- Gindows —10 AIUATTIA SITUA. cnde Becks STATI: Step it ay hf | Step 21: FON ASY AN HOTEL wae “WT | Steps LM BIT CPT AT CIID afk o AT zy ay Bia 4 TN | REPS LH Y Bim TH TT THAT afk o ay Tt weed FAST seepgs areas FROME LAH TE Step Rs “Typ so -9 TTY | Sipe? Lag — tep 9: 4 NAM 1 We Ay wa lepig :- ane al Uyy Carre: tart) Zep xy/ [er ED Pf ue ra Sr MARS TEL TS WT HTS OTT I oe OT et Start + MT pegramns Stage Backs eT Oy Code Black age oy a! f Oar File >New> fpr, file Fx ot TA aN SE cater indpow iN! "editor wlmuw ce at feats | ama: l44 Trolude IM main ) S$ “int WY, Mon, Lem Print ("Enter the value of x-.")5 Some" 4A" Rv) PFINEE "EMer Lhe yalne of We; emor(rza” fa), PMAN = (Kb)? arbs while (1) iC (monxy =20 GE mot 1y= 20) ‘ \em=man 5 break § 3 u 4 printf#(’/Lem = %dxn, Lem); hreturn 0} 3 WY Sapp Fle RECHT ewe as wan Er wer Pregram SWVC py) Nar: a Build ~ Gt Buiild -6 tye aft) Few cette WE cron qt er 19 MH BAT arr oT We eT oft ety OM build ~; me Fun 9 AEE -of ae save LI RaPe at All pragnains > eqdotdocks - 4 CG ATA cadeblocks capa BAL 7 oo ae Empty file a “TH » edttar cindy ( 6 cafier vinden @ EA -fafy. oo St. Joseph Higher Secondary School Lab_work No, 9 Name of the Lab Write a Program by usin to find the factorial ofa “work: ZC Programming language Positive integer, Name Roll Section Group Date of Performance: Date of Submission : “GTA! Wnelude © int main ( ) int yeor, PrINLL ('E nier the yeor ”)5 Scone ("yd ” ear): le, » & year); iy geerntn 28) NU Caarateg LE (yeorysool= Ol ly PPLE Xd ts leap year % yeor) 5 else + yea) pre ("4d 1S TOL a leop weer" year) 5 return 0; 13 3 As Tas Fe wer Ce sHe as Waa fe CO Progpam {q(T save «ft Build “Hs aT Build - 6 fe oH ae carat HAA “HTT HGTS JW | Hey! aT AT WIG OF YO a nn ON exild a “ae Pun -9 foe fF Rs see Oi) OT Ayre cafe ane Output: leapyear.c weet aon) Shot 4 391 GR MEAs Peo eal Run aac wt Prep OTAICAT Command Prompt Enter the year to be tested: 2024 The year 2024 is a Leap year Process returned 0 (0x0) Press any key to continue. Command Prompt Enter the year to be tested: 1600 The year 1600 is a Leap year Process returned 0 (Ox0) Press any key to continue. Command Prompt * Enter the year to be tested: 2025 The year 2025 is not a Leap year Process returned 0 (0x0) Press any key to continue. ee TT Sq. ane od avs fray Gl ayant n Saggy (d' ft 419-9 - 28a fin cata frynd “aI i e RANA “bare ae "a! En SB SB SB SBS SB SBE SESE ST SES SE a aE Ue meaty: ‘alsapate anes Ta fips AIK _ . ee ee wy: —— —_—_— “aret Fare iGEM pIBIGETA BN ay WW 1 qty -g@e seal) gawd | SRY ayia & qa gary. caso 22010 St ayneei(autteas aq 4 2a! aS: | . ISERTA: Gee afar dirt, | SHTUSHIN: oyna {ype rao 0 “WITTATA Jupesayd Code Blooks | WT oh | HERS TTA CHA sane Start> AM programs 7 Code Blacks —A (ee ofa aay code Blacks caisyate oT, \ . SINAN File>new> Empty Rie fata aft TA ARTY ME @fery sindrow OT “Gyaq Editor windrowd C A FANS AC [ carmaq; ———__ he WA AV Inelude=4); PIAL (The factorfal value 1S =%4"4)5 geteh() 5 3 ASTA: save bn Fle emenucitt awe-9 ge 19 bass Wwe AG! amity: : ~ | nm BS AE aT pura gaact FC “Ho RU veyqy centr “a\ Here RW Cust aye? Ag - anal ANG wna QWs aA a(t me st AY ey aa HA) Ce een aye rr OW Pum gg AU! ANSI save “ante 4 HH fay Tait cone —— es Output: factorialc wap PNR CH Ruin ace wr HCE GFA Screenshot aa CC GF ATCA Command Prompt x Enter a positive integer: 5 Factorial of 5 is 120 Process returned 0 (Ox0) Press any key to continue.

You might also like