52632357 ge2115 computer practice laboratory i manual rev01

Upload: sanjay-kumar

Post on 03-Jun-2018

227 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    1/62

    SRI VENKATESWARA COLLEGE OF ENGINEERING

    SRIPERUMBUDUR

    DEPARTMENT OF INFORMATION TECHNOLOGY

    LAB MANUAL

    GE2115 - COMPUTER PRACTICE LABORATORY - I

    I SEMESTER

    ANNA UNIVERSITY REGULATION 2008

    Prepared by Approved by

    Signature

    Na! Ms. P. Sharon FemiMs. L. Anita Elizabeth

    Dr .G.SumathiD!"#$%a'% Assistant Professor !D"#$

    Date %&.'(.)'%' %&.'(.)'%'

    %

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    2/62

    TABLE OF CONTENTS

    )

    E*er+ise ,o E*er+ise ,ame

    %W'() P('*!""#%$

    Do+ument +reation- $e*t manipulation ith S+ientifi+notations.

    )W'() P('*!""#%$

    a. $able +reation- $able formatting and /onversionb. $o +reate an advertisement in 0ord.

    1W'() P('*!""#%$

    $o illustrate the +on+ept of mail merging and letterpreparation.

    2W'() P('*!""#%$

    Draing " flo /hart

    3S+(!a) ",!!&

    /hart " Line- 45- 6ar and Pie.

    7S+(!a) ",!!&

    Formula " formula editor.

    8S+(!a) ",!!n+lusion of ob9e+t- Pi+ture and graphi+s- prote+ting thedo+ument and sheet. Auto Filtering

    (S+(!a) ",!!&

    Sorting and #mport : E*port features.

    &

    Da&a &+!". E/+(!""#'% Eaa'%. C'%)#'%

    S&a&!!%&"3a. ;ound of an integerb.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    3/62

    TABLE OF CONTENTS

    1

    E*er+ise ,o E*er+ise ,ame

    %'

    A((a"

    a. Linear Sear+hb. 6ubble sort+. Matri* additiond. $o rite a program to perform Matri*

    multipli+ation.e. $o rite a program to input a 1*1 Matri* and

    display it ith the sum of the ros and +olumns.

    f. $o rite a program to perform stringmanipulation fun+tions li>e string+on+atenation-+omparison- find the length and string +opyithout using library fun+tions.

    g. $o rite a program to arrange names inalphabeti+al order

    %%

    S&(*&(!" a%) U%#'%"

    a. $o print the mar> sheet of n students using

    stru+tures.b. $o print the differen+e beteen to dates using

    stru+tures$o print the employee payroll using unions.

    %)

    F%*'%"

    a. $o rite a / program to +al+ulate the mean-varian+e and standard deviation using fun+tions.

    b. $o rite a / program to perform se=uential andbinary sear+h using fun+tions

    +. $o rite a program to print the Fibona++iseries using re+ursion

    d. $o +al+ulate the fa+torial of the given numberusing re+ursion

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    4/62

    Ex no: 1

    DOCUMENT CREATION. TE4T MANIPULATION WITH SCIENTIFIC NOTATIONS

    PART-A

    Perform the folloing in MS"0ord

    #3 C(!a&! a %! '() )'*!%& a%) &+! &,! 6''#%$ &!/&7

    A ;!6!$ #, $E !?SE

    @/orre+tion. 5ou are in error. 5ou are miss informing your father. /orre+tion. $he or>has not been done. 5our +omputer has not been used. E;;!;- E;;!;. $he robotBsvoi+e as metalli+.

    $A;?,C 5ou are so lu+>y Adyta Man>u +an do so many things. #t +an +lean the house.#t +an anser the telephone- +all the do+tor and it +an even open the door.

    AD#$#C 0ait $here are so many things it +anBt do. #t +anBt laugh. #t +anBt do M5!ME0!; F!; ME. #t +anBt even help me de+ide hat should # ear for the party.

    ##3 Sa! &,! )'*!%& a" DOCUMENT3DOC

    Go to file menu ith +ursor- sele+t option @saveB- then type @do+ument.do+B then+li+> save.

    $he do+ument is saved under that name

    ###3 I%"!(& &,! 6''#%$ &!/& !6'(! &,! *'%!("a'% !&!!% A)# a%) Ta(%

    !h Stop interrupting- Man>u. Aditi said angrily. 5ouBre are not supposed toparti+ipate in every +onversation

    /li+> the +ursor in beteen the +onversion

    /li+> enter and type the paragraph given

    #3 Ma9! &,! "&'( ,!a)#%$ '). #&a#* a%) 1: +&"3

    Mar> the heading ith +ursor and then +li+> on the bold- itali+ and the letter sizei+ons.

    3 C,a%$! &,! 6'%& "&! '6 !%(! "&'( &' MS-C'#* Sa%"

    /li+> on the font i+on and +li+> on ms +omi+ sans. $he +hange is made.

    2

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    5/62

    #3 S!!*& &,! ,!a)#%$ '6 &,! )'*!%&. *& a%) +a"&! #& a& &,! !%) '6 &,!

    )'*!%&

    Sele+t the heading and +li+> the right button of +ursor and +hoose +ut

    Move the +ursor to the end of the do+ument- again +li+> the right >ey and +li+>

    past.

    ##3 U%)' &,! +(!#'" a*'%

    Sele+t the heading press the right button mouse- +li+> +ut.

    Move +ursor to the top of the do+ument and +li+> paste.

    ###3 S!!*& &,! 6#("& &' #%!" '6 &,! +a(a$(a+, a%) *'%!(& #& &' ++!(*a"!

    Sele+t lines ith +ursor- then go to format

    /li+> +hange +ase and +hoose upper +ase

    #/3 C,a%$! a &,! ++!(*a"! !&&!(" &' '!(*a"! a%) #*!-!("a

    Sele+t all the upper+ase- goto format +hoose +hange +ase to loer +ase and vi+eversa

    /3 C,a%$! &,! 6'%& "&! '6 &,! a"& +a(a$(a+, 12 +&" ') #&a#*

    Sele+t the last para and +li+> on the %) size and itali+ i+on

    /#3 C'+ &,#" 6'(a& &' &,! 6#("& +a(a$(a+, "#%$ 6'(a& +a#%&!(

    Sele+t the para and +li+> on format painter i+on

    /##3 H#$,#$,& &,! "!*'%) +a(a$(a+, ;H#%&7 "! ,#$,#$,&!( '( 6'(a&%$ &''a( on the hightlight i+on

    /###3 C,a%$! &,! 6'%& "#=! '6 &,! !%(! &!/& &' 1: +&"

    Sele+t the hole te*t and +li+> on the size i+on to %2 pt

    /#3 Ma9! a *'+ '6 &,#" )'*!%& #&, a )#66!(!%& %a! ;MYBOOK3DOC on @save asB and types the name- thedo+ument is +opied.

    /3 S!!*& &,! "!*'%) +a(a$(a+, '6 DOCUMENT3DOC a%) )!!&! #&

    Sele+t the para- +li+> on the left >ey of the +ursor then delete

    3

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    6/62

    /#3 U%)' &,! a'! a*'% a%) "!! &,! !66!*&

    /li+> on undo- the se+ond para appears

    /##3 R!)' &,! a'! a*'% a%) "!! &,! !66!*&

    /li+> on redo- the se+ond para disappears.

    /###3 D!!&! &,! !%(! )'*!%& ;DOCUMENT3DOC on do+ument.do+ and +li+> delete.

    /#/3 O+!% &,! )'*!%& MYBOOK3DOC

    /li+> the open menu and +hoose myboo>.do+

    //3 S,' a &,! %'%+(#%%$ *,a(a*&!(" #% &,#" )'*!%&3

    /li+> on P to sho the non"printing +hara+ters.

    PART-B

    O+!% )'*!%& MYBOOK3DOC a%) +!(6'( &,! 6''#%$ &a"93

    #3 N'&! )'% &,! )!6a& a($#%" '6 MYBOOK3DOC

    Sele+t format from main menu

    /li+> on @ParagraphB.

    A indo opens stating the margins

    ##3 F'(a& &,! 6#("& +a(a$(a+, #&, &,! 6''#%$ !a"(!!%&"7

    A#$%!%&7 >"#!)

    I%)!%&a'%7 L!6&703 :?. R#$,&703 :?

    S+!*#a7 F#("& #%! 035?

    L#%! "+a*#%$7 135 #%!"

    Sele+t Format and then Paragraph- ma>e the re=uired +hanges spe+ified above

    ###3 I% &,! !%) '6 MYBOOK3DOC &+!7

    @MANKU IS A ROBOT NOT A HUMAN BEING.

    $he +ursor is brought don to the end of the do+ument and the senten+e istyped.

    Ma9! 12 *'+#!" '6 &,! "&a&!!%& (#&&!% a'! a%) a++ a &,! &!/&

    A&&(#&!"

    7

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    7/62

    ighlight the statement- right +li+> the mouse button- sele+t +opy HorI sele+t +opyfrom @editB

    ?sing paste option %) +opies are made

    /hoose the @FontB option from format and give te*t attributes li>e style- +hange instyle et+.

    #3 U"#%$ )#66!(!%& &a "&'+" &+! &,! 6''#%$ )a&a #% &,! %!/& +a$! '6

    MYBOOK3DOC

    APE4 POLYMERS

    S.,o EmpJ Employee ,ame Address Salary% E''% Aditi 1%:&-Dr.Mu>her9ee ,agar 2''') E'') 6harti %)&)- Kaahar /olony 1'''1 E''1 Pradeep %&:%)-Dr.Mu>her9ee ,agar 1'3'2 E''2 Arora A"&%-Kaahar /olony ('''

    3 E''3 ,arula 71:)-Patel ,agar 2'''7 E''7 aur 8):&-!utram Lines )'3'8 E''8 Savita %&:A- Dr.Mu>her9ee ,agar 1'3'( E''( Gaurav A7:)%)-Pan+ha>ula 783'& E''& Avneet %'%:67-!uterm lines 3'''%' E'%' riti )(:)))-,iran>ari /olony 2'''

    Sele+t format from main menu and +hoose tabs after going to the ne*t page usingthe +ursor

    Fill the option @$ab stop positionB to be set for ea+h heading and +li+> set andthen o>

    So e=ual spa+ing ill be given a++ording to the position filled

    3 G#! a '()!( &' &,! a'! (#&&!% &!/&

    ighlight the ritten te*t

    Sele+t the border i+on from the format menu.

    en+e border is formed

    #3 S!a(*, 6'( &,! '() ROBOT a%) (!+a*! #& #&, ROBOT a*,#%!

    Sele+t Edit from menu and +hoose Find

    A indo opens and fill the Find and ;epla+e options respe+tively

    /li+> ;epla+e All

    ##3 W(#&! &,! 6''#%$ &!/& #% &,! %!/& +a$! '6 &,! "a! )'*!%&

    ;MYBOOK3DOC on Draing

    #+ons appear at bottom. Sele+t Autoshapes and then /allouts Sele+t the +loud shape and fill the senten+es inside

    ###3 I%"!(& a +a$! (!a9 !6'(! &,! *'%!("a'% !&!!% Ta(% a%) A)#

    Sele+t the line beteen the +onversation

    Sele+t brea> from insert menu

    Sele+t page brea>- +li+> o>

    #/3 O+!% a %! )'*!%& a%) #%"!(& &,! &a! #&, &,! 6''#%$ )a&a7

    F#("& Na! La"& Na! P,'%! A))(!""

    Sangeeta Mali> 3)17&(8 1):(-Dr.Mu>her9ee ,agar Preeti Ahu9a %238(&7 A"E:)7&-Shalimar 6aghMeenu ataria 1)'37)1 6"P:(%-6.P./olonyMandeep aur 238&7(% )3:&-!utram Lines$eena Gulati %)38&17 S?")1-Dr.Mu>her9ee ,agar

    Sele+t Dra table from $able options and dra a table in the do+ument

    /hoose Split +ells from $able- fill in ;os and /olumns- fill in the data.

    /3 Sa! a%) *'"! &,! )'*!%& #&, a))(!""3)'*

    /li+> on Save i+on and give the name and then +li+> /lose in File menu

    (

    #f you +ry nobody ill +ry ith you but #f you laugh everybody ill laugh ithyou.

    S! AL0A5S LA?G

    S! AL0A5S LA?G

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    9/62

    /#3 A$a#% '+!% &,! )'*!%& MYBOOK3DOC a%) $'& &,! !%) '6 &,!

    )'*!%& #% '%! "&!+

    /li+> the !pen menu- type the name- hen do+ument appears- +li+> /trlOEnd

    /##3 P(#%& +(!#! &,! +a$! *'%&a#%#%$ &,! )(a#%$ 6!a&(!" a%) "! &,! =''6!a&(! &' #! &,#" #% )#66!(!%& +!(*!%&a$!"3

    Sele+t File N +hoose Print Previe

    $he pages appear in miniature

    ?se zoom lens to ma*imise

    /###3 U"! &,! a&' *'((!*& 6!a&(! '6 '(9 &' a)) ",'(& 6'(" 6'(7

    #. AP Ape* Polymers##. N A i+>y N Asso+iates

    ###. 6PL 6ritish Petroleum Limited#. PA/E PA/E A+ademy of /omputer Edu+ation. #P #nformati+s Pra+ti+es

    Sele+t $ools from main menu and +hoose Auto +orre+t

    #n the indo fill ;epla+e option ith the respe+tive ord

    /#3 P('#)! ,!a)!(" a%) 6''&!(" #% MYBOOK3DOC ;,!a)!(" ",') !

    )#66!(!%& 6'( 6#("& +a$!. !!% a%) ')) +a$!"top

    For footers +hoose page no. #n the +olumn and fill it respe+tively

    /3 T+! #% &,! 6''#%$ *'%&!%&" #% &,! "a! )'*!%& MYBOOK3DOC

    A '() +('*!""'( ;"*, a" MS W'()< #" a *'+&!( +('$(a &,a& !%a!"

    ' &' *(!a&!. !)#&. +(#%& a%) "a! )'*!%&" 6'( 6&(! (!&(#!a a%)

    (!#"#'%3

    I% *a"! '6 &+!(#&!(. #%+& a%) '&+& a(! #%"!+a(a!3 I& !a%".

    ,!%!!( a 9! #" )!+(!""!) #3!3. #%+& #" 6!) &' a*,#%!. a *,a(a*&!( #"

    +(#%&!) '% &,! ",!!& #3!3. a%) a% '&+& #" $!%!(a&!)3 T,". '%! #" )!%#!)

    &,! 6a*##& &' ",a+! &,! '&+& "!+a(a&!3 E!% #% &,! *a"! '6 !!*&('%#*

    &+!(#&!(" #&, !'(. &,! "&'(a$! *a+a*#& 6'( &!/& a%) 6a*##!" 6'(

    &

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    10/62

    #&" a%#+a'% a(! !/&(!! ##&!)3 Fa*##& 6'( "&'(#%$ &,! #%+& &'

    "'! !/&!(%a !)# !6'(! +(')*#%$ &,! '&+& +('#)!) a% #)!a

    "''% &' &,#" +('!. /onvert the above te*t in to"+olumn te*t.

    Sele+t /olumns from Format in main menu and +li+> on ) +olumns.

    /#3 S+! *,!*9 '( )'*!%& a% *'((!*& a &,! $(aa*a a" ! a"

    "+!#%$ #"&a9!"

    Sele+t $ools- +li+> Spellings and Grammer.

    /##3 C'"! '( )'*!%&

    Sele+t /lose from the File- do+ument is +losed

    Pa(& C

    Edit the folloing do+uments

    Sele+t #nsert menu and +li+> the ob9e+t

    #n+lude the Formula Editor

    Edit the above formulas

    Save the do+ument

    /lose the do+uments

    %'

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    11/62

    Ex no: 2a

    Ta! *(!a'%. Ta! 6'(a&%$ a%) C'%!("#'%

    i. !pen a ne do+ument and insert a table ith the folloing dataC

    First ,ame Last ,ame Phone Address Sangeeta Mali> 3)17&(8 1):(-Dr.Mu>her9ee ,agar Preeti Ahu9a %238(&7 A"E:)7&-Shalimar 6agh Meenu ataria 1)'37)1 6"P:(%-6.P./olony

    Mandeep aur 238&7(% )3:&- !utram Lines$eena Gulati %)38&17 S?")1-Dr.Mu>her9ee ,agar

    Sele+t S&a(& menu

    Sele+t P('$(a"option Sele+t M#*('"'6& W'()from P('$(a"Sub menu.

    Sele+t N!option from the F#!menu of MS 0ord 0indo.

    !r /li+> on the ne do+ument i+on found on the standard toolbar.

    !n the Ta!menu- point to I%"!(&- and then +li+> Ta!option.

    $ype the number of ros and +olumns in the #nsert $able dialoguebo*.

    !r you +an use the D(a Ta! tool from Ta!menu to +reate atable. First- dra a line from one +orner of the table to the +orner

    diagonally opposite in order to define the boundary of the entire table-and then dra the +olumn and ro lines inside.

    $ype the given data.

    ii. Save the do+ument ith address.do+

    !n the F#!menu- sele+t Sa!option.

    $ype the do+ument name as a))(!""3)'*in F#!%a!te*tbo*.

    /li+> the Sa!button.

    iii. Sele+t the first ;o and 6old the $e*t.

    Sele+t the te*t- hi+h you ant to ma>e as 6old- from the table bydragging the mouse a+ross it.

    /li+> on B')button on F'(a&%$ &'' a(.

    !r use short+ut >eys CONTROLB.

    !r on the F'(a&menu- sele+t F'%&option.

    Sele+t F'%& S&!as B')in the F'%&tab.

    /li+> OKbutton.

    %%

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    12/62

    iv. Align the te*t in the first ro to /enter and align the te*t in theremaining ros to Left.

    6lo+> the te*t in the first ro of the table by dragging the mousea+ross it.

    /li+> on C!%&!(button on the F'(a&%$ &''a(.

    6lo+> the te*t in the remaining ros. /li+> on A#$% L!6&button on the F'(a&%$ &''a(.

    !r on the F'(a&menu- sele+t Pa(a$(a+,option.

    Sele+t the options from the A#$%!%&+ombo bo* in the I%)!%&" a%)S+a*#%$tab.

    /li+> OKbutton.

    v. #nsert a ,e /olumn to the beginning of the table ith the folloing data. S3N'

    %)

    123

    ?se a mouse to pla+e the +ursor at the beginning +olumn of the table.

    !n the Ta!menu- point to I%"!(&- and then +li+> C'%" &' &,!L!6&.

    $ype the given data in the inserted +olumn.

    vi. Add a ,e ;o to the End of the $able.

    ?se a mouse to pla+e the +ursor at the end ro of the table.

    !n the Ta! menu- point to I%"!(&- and then +li+> R'" B!'option.

    vii. #nsert a ,e ;o beteen 1 and 2.

    Pla+e the mouse +ursor at the 1rdro of the table.

    !n the Ta! menu- point to I%"!(&- and then +li+> R'" B!'option.

    viii. #nsert a ,e /olumn beteen 2thand 3th/olumn.

    Pla+e the mouse +ursor at the 2th+olumn of the table.

    !n the Ta!menu- point to I%"!(&- and then +li+> C'%" &' &,!

    R#$,&option.

    i*. /hange the size of the se+ond +olumnBs idth.

    Pla+e the mouse +ursor on the +olumn of the table here you ant to+hange.

    !n the Ta! menu- point to Ta! +('+!(!"- and then sele+tC'%tab.

    Sele+t the re=uired idth from the P(!6!((!) #)&,+ombo bo*.

    %)

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    13/62

    /li+> OKbutton.

    *. Sort the data a++ording to alphabeti+al order of First ,ame.

    Sele+t the /olumn or +ells you ant to sort.

    !n the Ta!menu- +li+> S'(&. Sele+t the sort options you ant.

    /li+> O+'%".

    Sele+t C'% O%+he+> bo*.

    /li+> OKbutton.

    *i. Delete the third ro and third /olumn from the table.

    Pla+e the mouse +ursor on the 1rdro.

    !n the Ta!menu- point to D!!&!- and then sele+t R'".

    Pla+e the mouse +ursor on the 1rd/olumn.

    !n the Ta!menu- point to D!!&!- and then sele+t C'%".

    *ii. /reate a ne ro at the top of your table- merge the +ells- and add a titleto the table.

    Pla+e the mouse +ursor on the first ro.

    !n the Ta!menu- point to I%"!(&- and then +li+> R'" a'!.

    6lo+> that ro- by dragging the mouse a+ross it.

    !n the Ta!menu- +li+> M!($! C!".

    $hen type the title of the table.

    *iii. /onvert the given te*t into a table. #tem /olor- Style-

    6us 6lue- A&('-

    an ;ed- 4')1-

    /ar Green- 5L8)2

    Sele+t the te*t u ant to +onvert- by dragging the mouse a+ross it.

    !n the Ta! menu- point to C'%!(&- and then +li+> T!/& &'Ta!.

    ?nder S!+a(a&! &!/& a&- +li+> the option for the separator +hara+ter

    you ant and then +li+> OK.

    *iv. Split the above table into to tables

    Pla+e the mouse +ursor on the table here you ant to split it.

    !n the Ta!menu- sele+t S+#& Ta!.

    *v. Apply 6orders- Shading and /olor to the table.

    %1

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    14/62

    Sele+t the +ell- ros- or +olumns you ant to add borders- shadingand +olor.

    Either right +li+> ithin your table and +hoose Ta! +('+!(!"or+li+> ithin your table and go to Ta!on the menu bar and +hooseTa! +('+!(!".

    $he Ta! +('+!(!"dialog bo* ill open. /li+> on the B'()!(" a%) S,a)#%$button.

    /hoose the setting style- the +olor and the idth that you ant.

    /li+> OKthen ne settings ill be added to the table.

    !r on the Ta!menu- +li+> Ta! A&'F'(a&.

    #n the F'(a&"bo*- +li+> the format you ant.

    $hen +li+> OKbutton.

    *vi. Spell +he+> your do+ument and +orre+t all the grammati+al errors asell as spelling mista>es.

    !n the T''"menu- +li+> S+!#%$ a%) G(aa( C,!*9option.

    $he errors are shon in red +olour.

    From the list of S$$!"'%"+hoose one.

    /li+> *,a%$!or #$%'(!.

    /ontinue till all errors are re+tified.

    *vii. Save the above do+ument as table.do+

    Sele+t F#!menu.

    Sele+t Sa!option.

    $ype the do+ument name as table.do+ in F#!%a!te*tbo*

    /li+> the Sa!button.

    *viii. /lose your do+ument.

    Sele+t F#!menu.

    Sele+t C'"!option.

    Sele+t E/#&from F#!menu to =uit the appli+ation.

    %2

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    15/62

    Ex no: 2b

    ADVERTISEMENT

    A BRIGHT CAREER IN INFORMATION TECHNOLOGY

    TREND REPORT7 T,! H(#) M')!S''% 6'( C,a!%$!" #% Ma%a$#%$ a%

    O66",'(! Ca+! C!%&!(

    A"&(a*&

    A re+ent survey +ondu+ted 9ointly by!utsour+ing /enter and 0ipro$e+hnologies indi+ates +ompanies stillhave signifi+ant +hallenges in managingtheir +aptive offshore +enters.

    $he survey- hi+h as not a s+ientifi+study- polled visitors at the !utsour+ing/enter portal during May )''7. #t as>ed/#!s and Global Sour+ing Managers to+hoose hi+h of the folloing fourfa+tors is their >ey +hallenge inmanaging an offshore +aptive +enterC

    ;apid s+alability of or>for+e andinfrastru+ture hile maintaining the +ostadvantage

    Aligning the offshore team ith yourorganizationBs +ulture and businessimperativesLa+> of a long"term strategy or visionfor your +aptive offshore operationLa+> of ade=uate managementbandidth to effe+tively manage themodel

    $his dis+usses the surveyBs findings asell as some best pra+ti+es to +ombat the+hallenges of a +aptive offshore +enter. #talso dis+usses the trend of using a hybridmodelQ part +aptive- part outsour+ingQas the solution for these +hallenges.

    %3

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    16/62

    $o +reate the advertisement in ord.

    !pen a ne ord do+ument.

    $ype the heading and sele+t the font as $imes ,e ;oman- font style as $itle +olor and

    the font size as appropriate. Sele+t #nsert "R Pi+ture "R /lipArt and sele+t the pi+ture.

    Sele+t $ools "R /ustomize "R $oolbars "R Draing and 0ord Art.

    Sele+t any one 0ordArt Style and insert in the do+ument.

    $ype the given arti+le and sele+t Format "R /olumns and sele+t to +olumns.

    #nsert the given shapes by sele+ting Auto shapes from the Draing $oolbar.

    Apply border to the entire page by sele+ting Format "R 6orders and Shading.

    Sele+t ie "R eader and Footer and add the ne+essary details.

    Save the do+ument as advertisement.do+.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    17/62

    Ex no: 3

    Ma# !($! a%) L!&&!( +(!+a(a'%

    i !pen a ne do+ument and type the folloing letter.

    Sep '%-)''(- /hennai.

    From VENKATESH 3P

    Sri ;anga Apartments- ,oC %)'- ## Avenue- $. ,agar. /hennai"%8.

    $o

    Dear Sir:Madam-0ith the +urrent slo don in hiring ithin the high" te+h field- you must be flooded ithresumes from out"pla+ed softare engineers su+h as myself. Please ta>e a moment to +onsidermy =ualifi+ations. # believe in parti+ular is highly mar>etable in this tight mar>etC

    # or>ed on the team that pioneered the te+hnology that put the PalmPilot on the map.#n todayBs in+reasingly mobile so+iety- this te+hnology has pla+es to go- and # have ideas that+ould ta>e us to the ne*t step in offi+e independen+e.Please +all me ith prospe+tive 9ob opportunities. # am interested in a pro9e+t managementposition in the &3 range.

    $han> you

    en>atesh. P

    En+losureC ;esume.

    Sele+t S&a(&menu

    Sele+t P('$(a"option

    Sele+t M#*('"'6& W'()from P('$(a"Sub menu.

    Sele+t N!option from the F#!menu of MS 0ord 0indo.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    18/62

    ii. Save the do+ument as Letter.do+.

    Sele+t F#!menu.

    Sele+t Sa!option from F#!menu.

    $ype the do+ument name as Letter.do+ in F#!%a!te*tbo*.

    /li+> the Sa!button.

    iii Send the do+ument to %' re+ipients using Mail merge. H?se %' different addressesI

    !n the T''"menu- sele+t Ma# M!($!option.

    /li+> on C(!a&!and sele+t F'( L!&&!(.

    /li+> on A*! W#%)'in the appearing dialogue bo*.

    !n Da&a "'(*!menu- point to G!& Da&a- then sele+t C(!a&! Da&aS'(*!.

    /hoose the fields you ish to in+lude in your data sour+e from a list ofdefault field names.

    $o add a field name- type the name in the F#!) Na!bo* and +li+> theA)) F#!) Na!button. $o remove a field name- +li+> on the nametohighlight it and then +li+> on the R!'! F#!) Na!button.

    /li+> the OKbutton

    Save your mail merge data sour+e as a do+ument.

    Sele+t E)#& Da&a S'(*!in the appearing dialogue bo*.

    Enter the information for ea+h person in ea+h of the fields

    After entering all of the desired re+ords- +li+> the OKbutton.

    $o insert a merge field +li+> I%"!(& M!($! F#!)on the Ma# M!($!toolbar. And you ill need to insert any pun+tuation or spa+es in the fieldlayout.

    $ype the given letter. !n the T''"menu- +li+> the M!($!+ommand on the Ma# M!($! option.

    Sele+t N!Do+ument from the M!($! T'7drop list.

    /hoose Aradio button to merge all re+ords.

    $hen +li+> M!($!button in the dialogue bo*.

    $his ill set all the form letters into a ne do+ument- hi+h you +an saveand:or print.

    iv /lose the do+ument.

    Sele+t F#!menu.

    Sele+t C'"!option.

    Sele+t E/#&from F#!menu to =uit the appli+ation.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    19/62

    Ex no: 4

    D(a#%$ F'*,a(&"

    1.Draw a flowchart to find the sum of first 50 natural numbers).Dra a flo+hart to find the largest of three numbers A-6- and /.1.Dra a flo+hart for +omputing fa+torial , H,I 0here , T % 4 ) 4 1 UU , .

    ;ight +li+> on the tool bars

    /li+> and in+lude the draing tool bar

    /li+> Auto shape

    Sele+t flo +hart

    /li+> on the symbol .Drag on the do+ument. Add te*t

    F'*,a(&

    A flo+hart illustrates the steps in a pro+ess. 6y visualizing the pro+ess- a flo+hart +an =ui+>lyhelp identify bottlene+>s or ineffi+ien+ies here the pro+ess +an be streamlined or improved.

    Alternate DefinitionC

    $he flo+hart is a means of visually presenting the flo of data through an informationpro+essing systems- the operations performed ithin the system and the se=uen+e in hi+h they

    are performed

    MEANING OF A FLOWCHART

    A flo+hart is a diagrammati+ representation that illustrates the se=uen+e of operations tobe performed to get the solution of a problem.

    Flo+harts are generally dran in the early stages of formulating +omputer solutions.

    Flo+harts fa+ilitate +ommuni+ation beteen programmers and business people.

    $hese flo+harts play a vital role in the programming of a problem and are =uite helpfulin understanding the logi+ of +ompli+ated and lengthy problems.

    Ba"#* F'*,a(%$ S,a+!"

    Flo+harts use spe+ial shapes to represent different types of a+tions or steps in a pro+ess. Linesand arros sho the se=uen+e of the steps- and the relationships among them.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    20/62

    G#)!#%!" #% F'*,a(%$7

    a. #n draing a proper flo+hart- all ne+essary re=uirements should be listed out in logi+alorder.

    b. $he flo+hart should be +lear- neat and easy to follo. $here should not be any room forambiguity in understanding the flo+hart.

    +. $he usual dire+tion of the flo of a pro+edure or system is from left to right or top to

    bottom.d. !nly one flo line should +ome out from a pro+ess symbol.

    H!;I

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    21/62

    e. !nly one flo line should enter a de+ision symbol- but to or three flo lines- one forea+h possible anser- should leave the de+ision symbol.

    f. !nly one flo line is used in +on9un+tion ith terminal symbol.

    g. #f the flo+hart be+omes +omple*- it is better to use +onne+tor symbols to redu+e thenumber of flo lines. Avoid the interse+tion of flo lines if you ant to ma>e it moreeffe+tive and better ay of +ommuni+ation.

    h. Ensure that the flo+hart has a logi+alstartandfinish.i. #t is useful to test the validity of the flo+hart by passing through it ith a simple test

    data.

    ADVANTAGES OF USING FLOWCHARTS

    %. /ommuni+ationC Flo+harts are better ay of +ommuni+ating the logi+ of a system to all+on+erned.

    ). Effe+tive analysisC 0ith the help of flo+hart- problem +an be analysed in more effe+tiveay.

    1. Proper do+umentation are made2. Effi+ient /oding are developed3. Proper Debugging are made.7. Effi+ient Program Maintenan+e is a+hieved.

    LIMITATIONS OF USING FLOWCHARTS

    %. /omple* logi+C Sometimes- the program logi+ is =uite +ompli+ated. #n that +ase-flo+hart be+omes +omple* and +lumsy.

    ). Alterations and Modifi+ationsC #f alterations are re=uired the flo+hart may re=uire re"draing +ompletely.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    22/62

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    23/62

    E/!(*#"!" O% F'*,a(%$7

    %. Dra a flo+hart to find the sum of first 3' natural numbers.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    24/62

    ). Dra a flo+hart to find the largest of three numbers A-6- and /.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    25/62

    1. Dra a flo+hart for +omputing fa+torial , H,I

    0here , T % V ) V 1 V UU , .

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    26/62

    Ex no: 5

    C,a(&"- L#%!. 4Y. Ba( a%) P#!3

    P('! 17

    $ype the folloing dataCSa!" (!+'(& 6'( &,! 6#("& a(&!( 200:

    A 6 / D E

    % V!,#*! a% F! Ma( T'&a

    ) /ar )3' 1'' 1%'

    1 Auto 32 &) )'

    2 Keep &% %)' %%

    3 an %)3 %%& 8(

    7 $otal

    %. Ma>e sure that appropriate formulas are entered in +olumn E so that total sales of ea+hvehi+le is shon properly. Similarly- in ro 7 type +orre+t formulas so that total sales forea+h month is shon in respe+tive +olumns.

    !pen a ne or>boo> indo.6uild the above table- starting from +ell A%. $ype the Formula HT sum H6)CD) II in +ell E) to +al+ulate $otal. Drag through the range HE) to E3I and then press !%&!( >ey.Similarly type the formula in +ell 67 and drag up to D7 to +al+ulate the total for everymonth.

    ). Dra a Pie /hart to sho vehi+le ise total sales made beteen Kan and Mar )''2.$otal sales of ea+h vehi+le must be shon as a se+tor.

    Sele+t the data to be +harted. /hoose C,a(&from the I%"!(&menu or +li+> on the C,a(&W#=a()button.Sele+t the +hart typeC P#!and +li+> on the N!/&button.

    ;ead the dialog bo*- ma>e sure the range is +orre+t and then +li+> the N!/&button.

    Enter the C,a(& &!. Ca&!$'( ;/< a/#".a! ;< a/#"and +li+> on %!/&button to

    +ontinue. /li+> on+e on the A" '>!*& #%radio button and spe+ify the ob9e+t name. /li+> on the 6#%#",button and get the desired +hart on the or>boo>.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    27/62

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    28/62

    2. Dra a sta+>ed bar graph to sho the sale of ea+h vehi+le in +omparison ith the totalsales for the month.

    ighlight the data to be +harted. /hoose C,a(&from the I%"!(&menu./hoose the +hart typeC Ba(and then sele+t the desired +hart sub"type from thesamples on display. +li+> on the N!/&button.

    #n the dialog bo*- the default radio button for C'%"ould be sele+ted. #f therange is +orre+t- +li+> on the N!/&button.

    Sele+t &!"tab from the dialog bo* and enter the C,a(& &!. Ca&!$'( ;/< a/#".a! ;< a/#".

    /li+> on the !$!%)folio and sele+t the desired pla+ement here the legends shouldbe displayed ./li+> on %!/&button.

    /li+> on+e on the As'>!*& #%radio button and spe+ify the ob9e+t name. /li+> on the 6#%#",button and get the desired +hart on the or>boo>.

    Stacked Bar graph

    0 500 1000 1500 2000

    Car

    Jeep

    Total

    ehicles

    !otal

    Series1

    Series2

    Series3

    3. Dra a Line graph to sho the sales trend over the first =uarter of the year )''2.

    ighlight the data to be +harted. /hoose C,a(&from the I%"!(&menu./hoose the +hart typeC L#%!and then sele+t the desired +hart sub"type from thesamples on display. +li+> on the N!/&button.

    #n the dialog bo*- if the range is +orre+t- +li+> on the N!/&button.

    Sele+t &!"tab from the dialog bo* and enter the C,a(& &!. Ca&!$'( ;/< a/#".a! ;< a/#".

    /li+> on the !$!%)tab and sele+t the desired pla+ement here the legends should bedisplayed ./li+> on %!/&button. /li+> on+e on the A" '>!*& #%radio button and spe+ify the ob9e+t name.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    29/62

    /li+> on the 6#%#",button and get the desired +hart on the or>boo>.

    "ine #hart

    0

    500

    1000

    1 2 3 4

    months

    !otal Car

    Auto

    Jeep

    Van

    Total

    7. $ype the folloing data in +olumn F

    F

    % C'"&

    ) )'''''

    1 8'''''

    2 &'''''

    3 %''''''

    Dra an 45 W graph +omparing to numeri+al variables viz.- +ost of the vehi+le andsale of the vehi+le.

    Enter the above data to the or>sheet . Sele+t the &'&aand *'"&+olumns from the or>sheet. /hoose C,a(&from the I%"!(&menu./hoose the +hart typeC /;"*a&&!(!*& #%radio button and spe+ify the ob9e+t name. /li+> on the 6#%#",button and get the desired +hart on the or>boo>.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    30/62

    $% chart

    0

    500000

    1000000

    1500000

    0 500 1000

    !otal

    #

    os

    Series1

    P('! 27

    /reate title for the graph as @Sales ;eport for the first =uarter W )''2B

    %. /reate legends for all the data ranges in the graphs:+harts dran in problem %.

    /li+> on the +hart to hi+h- you ish to apply legend ./hoose *,a(& '+'%"from the *,a(&menu or right"+li+> the +hart to sele+t *,a(&'+'%"

    Sele+t the &!" tab from the dialog bo* and give the *,a(& &!as spe+ified above. Sele+t the !$!%)"tab from the same dialog bo* and +he+> the ",' !$!%)option . +hoose the desired +a*!!%&here the legends should be displayed on the +hart.Sa+! *,a(& #&, !$!%)"

    "ine chart

    0

    500

    1000

    Car Auto Jeep Van Total

    vehicles

    total

    Series1 Series2 Series3 Series 4

    ). Display horizontal verti+al grids.

    /li+> on the +hart to hi+h- you ish to apply gridlines ./hoose *,a(& '+'%"from the *,a(&menu or right"+li+> the +hart to sele+t *,a(&'+'%"

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    31/62

    Sele+t the gridlines tab from the dialog bo* and +he+> the ma9or and minor gridlinesoption for * and y"a*is. $hen press o> button to dra gridlines on the +hart

    Sa+! *,a(& #&, G(#)#%!"

    Stacked Bar graph

    0 500 1000 1500 2000

    Car

    Jeep

    Total

    ehicles

    !otal

    Series1

    Series2

    Series3

    P('! 7

    0rite ma+ros for the folloingC

    %. $o auto fill a range viz.- A%../3 ith values starting from %- in+reasing in steps of 3.

    ). $o dra graphs automati+ally for the problem given in problem %.

    ighlight the data to be +harted. Press F11>ey to dra the graph automati+ally.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    32/62

    Ex no: &

    F'(a - F'(a !)#&'(

    PROBLEM 17

    GL!6AL S!F$ /ompany >eeps the employeesB payroll data in a or>sheet as shon belo.

    A 6 / D E

    % GLOBAL SOFT COMPANY

    ) E+ N'3 Na! Saa(

    1 % Meena )23''

    2 ) ishal %'3''

    3 1 Elisa %28&'

    7 2 ;i+ha %2'''

    8 3 Setha %3)3'

    ( 7 Dravid %7'''

    & 8 Sourav %2%''%'

    iI Enter the above data in a or>sheet and save the or>boo> as EMPL!5EE.4LS

    /hoose N!from the F#!menu.

    Starting from +ell A%- build the above table.

    /hoose Sa!from the F#!menu or +li+> on the Sa!button.

    #n the dialog bo*- spe+ify 6#! %a!as EMPL!5EE.4LS.

    iiI /al+ulate ;A- DA- PF and ,et salary for ea+h employee.

    ;A " )'X of basi+ salaryDA " )(X of basi+ salaryPF " %'X of basi+ salary

    a. $ype ;A- DA- PF- ,et salary in +ells D)- E)- F) N G).b. Enter the formula HT/1Y)':%''I in +ell D1 to +al+ulate ;A.+. Drag through the range you ant and then press !%&!(.d. Similarly +al+ulate DA- PF- ,et salary for ea+h employee.

    iiiI Save the or>boo> again.

    a. /li+> on the "a!button.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    33/62

    PROBLEM 27

    $he industan departmental store has organized an !ff Season sale. $he details of the items onsale and the per+entage of dis+ount offered are entered in a or>boo> as shon belo.

    A 6 / D E

    %HINDUSTAN DEPARTMENTAL STORE

    ) I&! Na! O(#$#%a P(#*! D#"*'%&;!*&"

    Sele+t the O>!*&option from the I%"!(&menu.

    #n the dialogue bo* C(!a&! N!and C(!a&! 6(' 6#!tabs are displayed.

    Sele+t C(!a&! N!and '>!*& &+!for in+luding a ne ob9e+t in the sheet.

    Sele+t C(!a&! 6(' 6#!and ('"!the file for in+luding an e*isting ob9e+t to the sheet.

    S&!+" 6'( #%"!(%$ +#*&(!" a%) G(a+,#*"

    Sele+t the C#+ a(&option from P#*&(!sub"menu of the I%"!(&menu. From the dialogue bo* displayed +li+> on the graphi+ sele+ted by you and +li+> on the

    I%"!(& C#+to add the image to the or>sheet.

    P(!#! C#+to vie the image full"size before adding it to the or>sheet Drag thebottom- right +orner of the previe indo to resize the image and +li+> the Z/Z +losebutton to end the previe

    A)) C#+ &' Fa'(#&!"ill add the sele+ted image to your favorites dire+tory that +an be+hosen from the I%"!(& C#+A(&dialog bo*.

    F#%) S##a( C#+"ill retrieve images similar to the one you have +hosen.

    /ontinue sele+ting images to add to the or>sheet and +li+> the C'"!button in the top-

    right +orner of the I%"!(& C#+A(&indo to stop adding +lip art to the or>sheet

    S&!+" F'( P('&!*%$ A D'*!%&

    /hoose the +('&!*& ",!!&+ommand from the +('&!*'%sub"menu of &''"menu3

    $ype +a""'()and +li+> on the '9button

    ;e enter the passord to +onfirm that you have not made any mista>e and +li+> on theOKbutton again.

    Sa!and +lose the or>sheet

    R!'+!% the or>boo> using the 6#! '+!%+ommand. ,o if you try to edit the or>boo>one message bo* ill appear informing you that sin+e the +ells are prote+ted you +anBt

    modify them. /li+> on theOKbutton to +lose this message bo*..

    $o unprote+t the do+ument +hoose %+('&!*& ",!!&+ommand from the P('&!*'% submenu

    of T''s menu.

    S&!+" 6'( !%&!(#%$ )a&a "#%$ F'( *'a%)

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    36/62

    /hoose the 6'(+ommand from the Da&amenu3

    $ype the re=uired data in the fields

    P('!7

    /reate an E4/EL sheet for the student details in a +lass for grade +al+ulationCHiI Passed in all sub9e+ts HiiI Avg [ &' grade is !- Avg [ (' grade is A- Avg [ 8' grade is 6-Avg [ 7' grade is /- Avg [ 3' grade is D. Apply filtering options.

    Starting from +ell A%- build the table ith student number- name- mar>s for 1sub9e+ts.

    /he+> the result of the student and display it. /al+ulate the average

    /al+ulate the grade using result and average in the formula bar.

    S&!+" F'( F#&!(#%$ '+'%"

    Sele+t all the data fields in+luding the titles. /hoose the A&'6#&!(+ommand from the F#&!(sub"menu of Da&amenu3

    $he fields +an no be vieed +ustomizely.

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    37/62

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    38/62

    Ex no: )a

    *ound o++ an integer

    A#

    $o round off an integer to the ne*t largest multiple of another integer.

    A$'(#&, D!"*(#+'%

    %. #nput the value of the integer to round off and store in integer variable i. #nput the otherinteger to hose multiple has to be rounded off to and store in integer variable 9.

    ). ;ound off the value of i to the ne*t largest multiple of 9 and store the value in integervariable > using the formula

    k= i+j i(mod)j

    1. Print the value of variable > onto the s+reen.2. Stop.

    Sa+! O&+&

    ENTER THE INTEGER TO BE RONDED OFF: 256

    ENTER THE ANOTHER INTEGER: 7

    THE RONDED OFF INTEGER IS 259

    ENTER THE INTEGER TO BE RONDED OFF: 57

    ENTER THE ANOTHER INTEGER: 8

    THE RONDED OFF INTEGER IS 64

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    39/62

    Ex no: )b

    *oots o+ a ,uadratic e-uation

    A#

    $o find the roots of a given if the value of d is less than '. #f it is- goto step 8 otherise goto step %%8. /ompute the real part of the root and store in *% using the formula

    *%T"b:)a and the +omple* part in *) using the formula*) T H"dI\:)a

    (. Print the value of the +omple* roots onto the s+reen as *% O i*) and *%"i*). Goto step %%.&. /ompute the e=ual roots and store in variables *% and *) using the formula

    *% T "b:)a and *) T "b:)a%'. Print the values of the e=ual roots *% and *) onto the s+reen.%%. Stop.

    Sa+! O&+&ENTER THE COEFFIECIENTS

    ENTER THE VALUE OF a: 2

    ENTER THE VALUE OF b: 7

    ENTER THE VALUE OF c: 4

    THE ROOTS ARE -072!-278

    THE ROOTS ARE REAL AND DISTINCT

    ENTER THE COEFFIECIENTS

    ENTER THE VALUE OF a: "

    ENTER THE VALUE OF b: 2

    ENTER THE VALUE OF c: "

    THE ROOTS ARE -"00!-"00

    THE ROOTS ARE REAL AND E#UAL

    ENTER THE COEFFIECIENTS

    ENTER THE VALUE OF a: "

    ENTER THE VALUE OF b: 2

    ENTER THE VALUE OF c: 5

    THE ROOTS ARE -"00$200% AND -"00-200%

    THE ROOTS ARE CO&'LE(

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    40/62

    Ex no: )c

    .rmstrong /umber

    A#

    $o rite a program to +he+> hether the given number is Armstrong or not.

    A$'(#&, D!"*(#+'%

    %. Start. ). A++ept the number- ,

    1. Find the sum of the +ube of the individual digits of the number , and storein S?M%.

    2. #f S?M% e=uals to , then , is Armstrong Else , is not Armstrong.

    3. Stop

    Sa+! O&+&

    ENTER THE NU&BER: "5)

    THE GIVEN NU&BER "5) IS AN AR&STRONG NU&BER

    ENTER THE NU&BER: )45

    THE GIVEN NU&BER )45 IS NOT AN AR&STRONG NU&BER

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    41/62

    Ex no: )d

    Palindrome /umber

    A#

    $o rite a program to +he+> hether the given number is Armstrong or not.

    A$'(#&, D!"*(#+'%

    %. Start.). A++ept the number- ,1. Find the reverse of the number , by e*tra+ting the last digit- multiplying by %' and

    redu+ing the number 2. #f the reverse e=uals to , then , is a Palindrome Else , is not Palindrome.

    3. Stop

    Sa+! O&+&

    ENTER THE NU&BER: "2"

    THE GIVEN NU&BER "2" IS A 'ALINDRO&E NU&BER

    ENTER THE NU&BER: )45

    THE GIVEN NU&BER )45 IS NOT A 'ALINDRO&E NU&BER

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    42/62

    Ex no: )e

    Electricit0 bill Preparation

    A#

    $o rite a / program to +al+ulate ele+tri+ity bill. ;ead the starting and ending meter reading.$he +harges are as follos.

    ,o of units +onsumed ;ates in H;sI

    )''.3'' 1.3'%''.)'' ).3'Less than %'' %.3'

    A$'(#&, D!"*(#+'%

    %. Get the initial and final meter reading from the +onsumer +ard.). ,o of units +onsumedTfinal meter reading"initial meter reading1. #f Hno of units +onsumed RT)'' NN no of units +onsumed ]T3''I then

    total +harge T,o of units +onsumedY1.3'2. #f Hno of units +onsumed RT%'' NN no of units +onsumed ]T%&&I then

    total +harge T,o of units +onsumedY).3'3. #fHno of units +onsumed ]%''I then total +harge T,o of units +onsumedY%.3'

    7. Print the total +harge for the +al+ulated no of units +onsumed.

    Sa+! O&+&

    Enter the initial and final meter readingC1'''1'3'

    ,o of units +onsumedT3'$otal +hargeH;sIT83

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    43/62

    Ex no: )+

    enu driven calculator

    A#

    $o rite a simple menu driven +al+ulator program using sit+h statement

    A$'(#&, D!"*(#+'%

    %. Get to operands and the operator +hara+ter from the user.). #f the operator is @OB then add the operands.1. #f the operator is @"B then subtra+t one operand from the other operand.2. #f the operator is @YB then multiply the operands

    3. #f the operator is @:B then divide one operand by the other.7. #f the entered +hara+ter is not mat+hing any of these above four operators then print the

    default statement Enter the +orre+t operator

    Sa+! O&+&

    Enter the operands13Enter the operatorO

    (

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    44/62

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    45/62

    Ex no: )h

    Sine and #osine series

    A#

    $o rite a / program to generate the sine and +osine seriesSummation of Sine seriesC ST* " *1:1 O *3:3 " *8:8 O UUU4n:n

    Summation of /osine seriesC ST% O *):) O *2 :2 O *7:7 O UUU

    A$'(#&, D!"*(#+'% 6'( S#%! 6%*'%

    %.Get the values of * and n here n de+ides ho long the series should +ontinue.).Set the initial +onditions ST*- termT*-iT%1.$o get the terms ith alternate sign repeatedly e*e+ute signT"sign

    2.$ill the desired no of terms are generated repeat the folloing steps a. #dentify the +urrent ith term b.generate +urrent term from its prede+essor.

    +urrent ith term T;previous term

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    46/62

    S#%! S!(#!"

    Sa+! #%+&7

    Enter the values of * and n

    %)

    Sa+! '&+&

    '.(111111

    C'"#%! S!(#!"

    Sa+! #%+&7

    Enter the values of * and n))

    Sa+! '&+&

    2

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    47/62

    Ex no: )i

    Prime /umber eneration

    A#

    $o generate a prime number series upto the given limit.

    A$'(#&, D!"*(#+'%

    %. Start). ;ead the value of n.1. $o print the value ) on s+reen.2. Ma>e a for loop

    De+lare iT1#n+rement i by % upto n3. ?sing another for loop

    De+lare 9T)From 9T) to 9]i divide i by 9#f i X 9 T T ' then print the number else print H I

    7. Stop

    Sa+! O&+&7

    Enter the Limit value C %'

    )138

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    48/62

    Ex no: 1a

    "inear Search

    A#

    $o sear+h for a given element in an array and find its position if it is present.

    A$'(#&, D!"*(#+'%

    %. Start). A++ept the number of elements- n1. ;ead all the n elements in the array a^n_2. A++ept the element- s- to sear+h.3. #nitialize variables big and small to a^'_ and posn to W%.7. For i T ' to n"% do step 88. if HsTTaHiII then posn T i(. if HposnR"%I then print $he given element is found at position C - posn&. if HposnTT"%I then print $he given element is not found in the array%'. Stop

    Sa+! O&+&

    Enter ,o of elementsC 1

    Enter Array elementsC )-7-&Enter Sear+hing elementC 7

    $he given element is found at position C).

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    49/62

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    50/62

    Ex no: 1c

    atrix .ddition

    A#

    $orite a program in / to perform matri* addition.

    A$'(#&, D!"*(#+'%

    %. Start. ). A++ept the number of ros and +olumns Hm-n - p-=I for the ) matri+es a N b.

    1. #f m]Rp NN n]R= then rite Matri* addition is not possible. goto Step %1.2. A++ept the elements of the ) matri+es.3. ;epeat Steps 3 to ( for i T % to m.7. ;epeat Steps 7 to 8 for 9 T % to =.

    8. +^i_^9_Ta^i_^9_Ob^i_^9_(. /ontinue looping for 9.&. /ontinue looping for i.%'. Display $he resultant matri* is%%. Display the matri* +.%). Stop.

    Sa+! O&+&

    Enter number of rosN +olumns in %stmatri*C 1 1Enter number of rosN +olumns in )ndmatri*C 1 1

    Enter the elements of the %stmatri*C% ) 12 3 78 ( &Enter the elements in the )ndmatri*C% ' '' % '' ' %$he matri* after addition is) ) 12 7 7

    8 ( %'

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    51/62

    Ex no: 1d

    atrix ultiplication

    A#

    $orite a program in / to perform matri* multipli+ation.

    A$'(#&, D!"*(#+'%

    %. Start.). A++ept the number of ros and +olumns Hm-n - p-=I for the ) matri+es a N b.1. #f n]Rp then rite Matri* multipli+ation is not possible. And goto Step %2.2. A++ept the elements of the ) matri+es.3. ;epeat Steps 7 to %% for i T % to m.7. ;epeat Steps 8 to %' for 9 T % to =.8. ;epeat Steps ( N & for > T % to n.(. +^i_^9_T+^i_^9_Oa^i_ >_Y b^>_^9_.&. /ontinue looping for >.%'. /ontinue looping for 9.%%. /ontinue looping for i.%). Display $he resultant matri* is%1. Display the matri* +.

    %2. Stop.

    Sa+! O&+&

    Enter number of rosN +olumns in %stmatri*C 1 1Enter number of rosN +olumns in )ndmatri*C 1 1Enter the elements of the %stmatri*C% ) 12 3 78 ( &Enter the elements in the )ndmatri*C

    % ' '' % '' ' %$he matri* after multipli+ation is% ) 12 3 78 ( &

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    52/62

    Ex no: 1e

    ispla0 the matrix ith the sum o+ 3 ros and columns

    A#

    $o rite a program in / to input a 1*1 Matri* and display a Matri* ith the sum of the ros and+olumns.

    A$'(#&, D!"*(#+'%

    %. Start.). #nput the elements of the matri*1. Find the ro ise and +olumn ise total and store it in separate one"dimensional

    matri+es2. Display the given matri* along ith the to one dimensional matri+es in the re=uired

    format.3. Stop.

    Sa+! O&+&

    Enter the elements of the matri*C% ) 12 3 78 ( &

    $he resultant matri* is% ) 1 72 3 7 %38 ( & )2%) %3 %(

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    53/62

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    54/62

    Sa+! O&+&

    Enter the to strings,e5or>

    %. String /on+atenation). String /omparison1. String length2. String /opy

    Enter the +hoi+e C %/on+atentated String C ,e 5or>

    %. String /on+atenation). String /omparison

    1. String length2. String /opy

    Enter the +hoi+e C )String /omparison C Strings are not e=ual

    %. String /on+atenation). String /omparison1. String length2. String /opy

    Enter the +hoi+e C 1Length of the %st string C 1

    %. String /on+atenation). String /omparison1. String length2. String /opy

    Enter the +hoi+e C 2/opied String C ,e

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    55/62

    Ex no: 1g

    Sorting 6+ /ames

    A#

    $orite a program in / to arrange names in alphabeti+al order

    A$'(#&, D!"*(#+'%

    %. Start.). A++ept the number of names- n- in the array.1. For i T ' to n"% do step 22. ;ead aHiI

    3. For i T ' to n"% do steps 7 to %'7. For 9 T ' to n"i"% steps 8 to %'8. if Hstr+mpHaH9I-aH9O%II R'I do steps ( to %'(. str+pyHtemp- aH9II&. str+pyHaH9I - aH9O%II%'. str+pyHaH9O%I - tempI%%. For i T ' to n"% do step %)%). 0rite aHiI%1. Stop

    Sa+! O&+&

    Enter the number of names C 2LondonDelhiParisMos+o

    Alphabeti+al ListDelhiLondonMos+o

    Paris

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    56/62

    Ex no: 11a

    Student7s ark list using Structures

    A#

    $o rite a program in / to maintain the studentBs mar> list.

    A$'(#&, D!"*(#+'%

    %. Start ). Define a stru+ture stu +ontaining members li>e name- roll number- mar>%-

    mar>)- mar>1- total- average N grade ith stru+ture variable names^%''_Harray of stru+turesI.

    1. A++ept the number of students n.

    2. A++ept the details of the students by a++essing the members of the stru+ture bygiving s^i_.]member nameR here # is the loop +ounter from % to n.

    3. ;epeat steps 7 to ( for iT% to n.7. /ompute s^i_.total by summing the 1 mar>s and the average for the ith student.8. Depending on the value of average- +ompute the grade for the ith student.(. /ontinue looping for i.&. Display the details of the students in tabular format.%'. Stop.

    Sa+! O&+&

    Enter the number of studentsC )Enter detailsU.%.;!LL ,!.C )),AMEC sanMA$S MA;SC %''P5 MA;SC &&/EM MA;SC (().;!LL ,!.C %),AMEC er

    MA$S MA;SC ((P5 MA;SC ))/EM MA;SC 11

    Student Details;!LL ,! ,AME $!$AL AG. G;ADE)) san )(8 &3 A%) er %21 28 /

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    57/62

    Ex no: 11b

    i++erence beteen to dates using structures8

    A#

    $o rite a program in / for finding the differen+e beteen to dates using stru+tures..

    A$'(#&, D!"*(#+'%

    %. Start ). Define a stru+ture date +ontaining members li>e day- month- year.

    1. Define 1 stru+ture variables for date- say- d%- d) and d1.2. A++ept the details of the dates for d% and d) by a++essing the members of the stru+ture

    using d.]member nameR3. Find the differen+e and store it in d1.7. Stop.

    Sa+! O&+&

    Enter date%C %('2)'%'Enter date)C %)')

    )'%'Differen+e in daysC 7Differen+e in MonthsC )Differen+e in yearC '

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    58/62

    Ex no: 11c

    Emplo0ee Pa0roll using 9nions

    A#

    $o rite a program in / to prepare Employee Payroll.

    A$'(#&, D!"*(#+'%

    %. Start ). Define a union emp +ontaining members li>e name-

    emp id-bpay-DA-;A-//A-PF-grosspay N netpay ith union variable namee^%''_Harray of unionsI.

    1. A++ept the number of employees n.2. A++ept the details of the employees by a++essing the members of the union by

    giving e^i_.]member nameR here # is the loop +ounter from % to n.3. ;epeat steps 7 to ( for iT% to n.7. /ompute e^i_.DA -e^i_ .;A- e^i_ .//A -e^i_ .PF for the ith employee.8. /ompute e^i_.gross by summing the above four +al+ulations for the ith

    employee.(. /ompute e^i_.netpay by subtra+ting the PF from gross for the ithemployee.&. /ontinue looping for i.%'. Display the details of the employees in tabular format.%%. Stop.

    Sa+! O&+&

    Enter the number of employeesC )Enter detailsU.%.EMP #DC %11,AMEC ;ASA,6AS#/ PA5C (''').EMP #DC %13,AMEC ;A#

    6AS#/ PA5C 7'''

    Employee Details

    EMP #D ,AME 6AS#/ PA5 DA ;A //A PF G;!SS ,E$)) ;ASA, (''' 37(' ('' 2'' ('' %37(' %2(('%) ;A# 7''' 2)7' 7'' 1'' 7'' %%87' %%%7'

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    59/62

    Ex no: 12a

    #alculation o+ mean variance and standard deviation using+unctions

    A#

    $o rite a / program to +al+ulate the mean- varian+e and standard deviation using fun+tions.

    A$'(#&, D!"*(#+'%

    %. Start.). Enter the number of elements- n1. Store the elements in an array- a i_

    2. +all the fun+tion-meanHa-nI to +al+ulate the mean3. +all the fun+tion- varian+eHa-nI to +al+ulate the varian+e7. s=uare root of varian+e is the Standard deviation- sdTs=rtHvarian+eI8. Display mean- varian+e and standard deviation(. Stop

    Fun+tion meanHa-nI%. Start). initialize sumT'1. for iT% to n do step 22. sumTsumOa^i_

    3. mTsum:n7. return m8. stop

    Fun+tion varian+eHa-nI%. Start). *TmeanHa-nI1. for iT' to n do step2. sumTsumOHa^i_"*IYHa^i_"*I3. varTsum:n7. return var

    8. Stop

    Sa+! O&+&

    Enter the limitC3Enter the elementsC 1 2 3 7 8MeanC 3arian+e C)Standard DeviationC%.2%2

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    60/62

    Ex no: 12b

    Se-uential and Binar0 search using ;unctions

    A#

    $orite a program in / to perform se=uential and binary sear+h using fun+tions

    A$'(#&, D!"*(#+'%

    %. Start.). A++ept the limit -n1. ;ead all the n elements in the array a^n_2. A++ept the element- s- to sear+h.

    3. +all the fun+tion- se=Ha-s-nI for se=uential sear+h7. +all the fun+tion- binHa-s-nI for binary sear+h8. Stop

    Fun+tion se=Ha-s-nI%. Start). #nitialize variables big and small to a^'_ and posn to W% respe+tively.1. For i T ' to n"% do step 22. if HsTTaHiII then posn T i3. if HposnR"%I then print $he given element is found at position C - posn7. if HposnTT"%I then print $he given element is not found in the array

    8. Stop

    Fun+tion binHa-s-nI%. Start). #nitialize leftT' right Tn1. hile left]Tright do step 22. midTfloorHHright"leftI:)IOleft3. if value R a^mid_ -leftTmid O%7. else if value ] a^mid_- rightTmid"%8. else return mid(. else return not found

    &. Stop

    Sa+! O&+&

    Enter ,o of elementsC 1Enter Array elementsC )-7-&Enter Sear+hing elementC 7

    $he given element is found at position C).

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    61/62

    Ex no: 12c

    ;ibonacci series using recursion

    A#

    $orite a program in / to print the fibona++i series using re+ursion

    A$'(#&, D!"*(#+'%

    %. Start.). A++ept the limit -n1. +all the fun+tion- fibHnI2. Print the series

    3. Stop

    Fun+tion fibHnI

    %. Start). if nTT% return '1. else if nTT) return %2. else fHnITfibHn"%IOfibHn")I3. return fHnI7. Stop

    Sa+! O&+&

    Enter the limitC2Fibona++i seriesC'%%)

  • 8/12/2019 52632357 GE2115 Computer Practice Laboratory I Manual Rev01

    62/62

    Ex no: 12d

    ;actorial o+ the given number using recursion

    A#

    $orite a program in / to +al+ulate fa+torial of the given number using fun+tions

    A$'(#&, D!"*(#+'%

    %. Start). Enter the number-n for hi+h the fa+torial has to be +al+ulated1. +all the fun+tion- fa+tHnI

    2. Print the fa+torial of the number3. Stop

    Fun+tion fa+tHnI

    %. Start). if nTT% return %1. else fTnYfa+tHn"%I2. return f 3. Stop

    Sa+! O&+&

    Enter the numberC 2Fa+torial C )2