Foc Lab Manual - Raja

Embed Size (px)

Citation preview

  • 7/30/2019 Foc Lab Manual - Raja

    1/37

    RAJA COLLEGE OF ENGINEERING AND TECHNOLOGYMADURAI

    DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

    LAB MANUAL

    GE2115 - COMPUTER PRACTICE LABORATORY - I

    I SEMESTER

    ANNA UNIVERSITY REGULATION 2008

    Prepared by Approved by

    Signature

    Name Mr. M. Chander KumarMr. K. Saravana Kumar Prof. P. Saravanan

    Designation Assistant Professor's HOD-CSE

    Date

  • 7/30/2019 Foc Lab Manual - Raja

    2/37

    TABLE OF CONTENTS

    Exercise No Exercise Name

    1Word Processing

    Document creation, Text manipulation with Scientificnotations.

    2Word Processing

    a. Table creation, Table formatting and Conversionb. To create an advertisement in Word.

    3Word Processing

    To illustrate the concept of mail merging and letterpreparation.

    4Word ProcessingDrawing - flow Chart

    5Spread sheetChart - Line, XY, Bar and Pie.

    6Spread sheetFormula - formula editor.

    7Spread sheetInclusion of object, Picture and graphics, protecting thedocument and sheet. Auto Filtering

    8Spread sheetSorting and Import / Export features.

    9

    Data types, Expression Evaluation, Condition

    Statements.a. Round of an integerb. Quadratic equation

    c. Armstrong numberd. Palindrome Numbere. To write a program for electricity bill preparation.f. To write a simple menu driven calculator program

    using switch statementg. To write a program to find the largest digit of a

    number

    h. To write a program to print the sine and cosineseries.

    i. To write a program to generate prime numbers.

  • 7/30/2019 Foc Lab Manual - Raja

    3/37

    TABLE OF CONTENTS

    Exercise No Exercise Name

    10

    Arrays

    a. Linear Searchb. Bubble sortc. Matrix additiond. To write a program to perform Matrix

    multiplication.e. To write a program to input a 3x3 Matrix and

    display it with the sum of the rows and columns.

    f. To write a program to perform stringmanipulation functions like stringconcatenation,comparison, find the length and string copywithout using library functions.

    g. To write a program to arrange names inalphabetical order

    11

    Structures and Unions

    a. To print the mark sheet of n students using

    structures.b. To print the difference between two dates using

    structuresc. To print the employee payroll using unions.

    12

    Functions

    a. To write a C program to calculate the mean,variance and standard deviation using functions.

    b. To write a C program to perform sequential andbinary search using functions

    c. To write a program to print the Fibonacciseries using recursion

    d. To calculate the factorial of the given numberusing recursion

  • 7/30/2019 Foc Lab Manual - Raja

    4/37

    Ex no: 1

    DOCUMENT CREATION, TEXT MANIPULATION WITH SCIENTIFIC NOTATIONS

    PART-A

    Perform the following in MS-Word

    i. Create a new word document and type the following text:

    A ROBOT IN THE HOUSE

    Correction. You are in error. You are miss informing your father. Correction. The workhas not been done. Your computer has not been used. ERROR, ERROR. The robotsvoice was metallic.

    TARUN: You are so lucky Adyta! Manku can do so many things. It can clean the house.It can answer the telephone, call the doctor and it can even open the door.

    ADITI: Wait! There are so many things it cant do. It cant laugh. It cant do MYHOMEWORK FOR ME. It cant even help me decide what should I wear for the party.

    ii. Save the document as DOCUMENT.DOC

    Go to file menu with cursor, select option save, then type document.doc thenclick save.

    The document is saved under that name

    iii. Insert the following text before the conversation between Aditi and Tarun

    Oh! Stop interrupting, Manku. Aditi said angrily. Youre are not supposed toparticipate in every conversation

    Click the cursor in between the conversion

    Click enter and type the paragraph given

    iv. Make the story heading bold, italic and 14 pts.

    Mark the heading with cursor and then click on the bold, italic and the letter sizeicons.

    v. Change the font style of entire story to MS-Comic Sans

    Click on the font icon and click on ms comic sans. The change is made.

  • 7/30/2019 Foc Lab Manual - Raja

    5/37

    vi. Select the heading of the document, cut and paste it at the end of thedocument

    Select the heading and click the right button of cursor and choose cut

    Move the cursor to the end of the document, again click the right key and click

    past.

    vii. Undo the previous action

    Select the heading; press the right button mouse, click cut.

    Move cursor to the top of the document and click paste.

    viii. Select the first two lines of the paragraph and convert it to uppercase

    Select lines with cursor, then go to format

    Click change case and choose upper case

    ix. Change all the uppercase letters to lowercase and vice-versa

    Select all the uppercase, goto format choose change case to lower case and viceversa

    x. Change the font style of the last paragraph 12 pts bold italic

    Select the last para and click on the 12 size and italic icon

    xi. Copy this format to the first paragraph using format painter

    Select the para and click on format painter icon

    xii. Highlight the second paragraph (Hint: use highlighter or formatting toolbar)

    Select 2nd para and click on the hightlight icon

    xiii. Change the font size of the entire text to 14 pts

    Select the whole text and click on the size icon to 14 pt

    xiv. Make a copy of this document with a different name (MYBOOK.DOC)

    Select file from main menu and click on save as and types the name, thedocument is copied.

    xv. Select the second paragraph of DOCUMENT.DOC and delete it

    Select the para, click on the left key of the cursor then delete

  • 7/30/2019 Foc Lab Manual - Raja

    6/37

    xvi. Undo the above action and see the effect

    Click on undo, the second para appears

    xvii. Redo the above action and see the effect

    Click on redo, the second para disappears.

    xviii. Delete the entire document (DOCUMENT.DOC)

    Select file from main menu. Click on document.doc and click delete.

    xix. Open the document MYBOOK.DOC

    Click the open menu and choose mybook.doc

    xx. Show all the nonprinting characters in this document.

    Click on P to show the non-printing characters.

    PART-B

    Open document MYBOOK.DOC and perform the following task.i. Note down the default margins of MYBOOK.DOC

    Select format from main menu

    Click on Paragraph.

    A window opens stating the margins

    ii. Format the first paragraph with the following measurements:Alignment: justifiedIndentation: Left:0. 4, Right:0. 4Special: First line by 0.5Line spacing: 1.5 lines

    Select Format and then Paragraph, make the required changes specified above

    iii. In the end of MYBOOK.DOC type:

    MANKU IS A ROBOT NOT A HUMAN BEING.

    The cursor is brought down to the end of the document and the sentence istyped.

    Make 12 copies of the statement written above and apply all the textAttributes

  • 7/30/2019 Foc Lab Manual - Raja

    7/37

    Highlight the statement, right click the mouse button, select copy (or) select copyfrom edit

    Using paste option 12 copies are made

    Choose the Font option from format and give text attributes like style, change instyle etc.

    iv. Using different tab stops type the following data in the next page ofMYBOOK.DOC

    APEX POLYMERS

    S.No Emp# Employee Name Address Salary1 E001 Aditi 31/9,Dr.Mukherjee Nagar 40002 E002 Bharti 1292, Jawahar Colony 30003 E003 Pradeep 19/12,Dr.Mukherjee Nagar 30504 E004 Arora A-91,Jawahar Colony 8000

    5 E005 Narula 63/2,Patel Nagar 40006 E006 Kaur 72/9,Outram Lines 20507 E007 Savita 19/AZ, Dr.Mukherjee Nagar 30508 E008 Gaurav A6/212,Panchakula 67509 E009 Avneet 101/B6,Outerm lines 500010 E010 Kriti 28/222,Nirankari Colony 4000

    Select format from main menu and choose tabs after going to the next page usingthe cursor

    Fill the option Tab stop position to be set for each heading and click set andthen ok

    So equal spacing will be given according to the position filled

    v. Give a border to the above written text

    Highlight the written text

    Select the border icon from the format menu.

    Hence border is formed

    vi. Search for the word ROBOT and replace it with ROBOT machine

    Select Edit from menu and choose Find

    A window opens and fill the Find and Replace options respectively

    Click Replace All

    vii. Write the following text in the next page of the same document(MYBOOK.DOC)

  • 7/30/2019 Foc Lab Manual - Raja

    8/37

    Select Toolbasr from View & click on Drawing

    Icons appear at bottom. Select Autoshapes and then Callouts Select the cloud shape and fill the sentences inside

    viii. Insert a page break before the conversation between Tarun and Aditi

    Select the line between the conversation

    Select break from insert menu

    Select page break, click ok

    ix. Open a new document and insert the table with the following data:

    First Name Last Name Phone Address

    Sangeeta Malik 5236987 32/8,Dr.Mukherjee NagarPreeti Ahuja 1457896 A-E/269,Shalimar BaghMeenu Kataria 3205623 B-P/81,B.P.ColonyMandeep Kaur 4579681 25/K9,Outram LinesTeena Gulati 1257936 SU-23,Dr.Mukherjee Nagar

    Select Draw table from Table options and draw a table in the document

    Choose Split cells from Table, fill in Rows and Columns, fill in the data.

    x. Save and close the document with address.doc

    Click on Save icon and give the name and then click Close in File menu

    If you cry nobody will cry with you but If you laugh everybody will laugh with

    you.

    SO ALWAYS LAUGH

    SO ALWAYS LAUGH

  • 7/30/2019 Foc Lab Manual - Raja

    9/37

    xi. Again open the document MYBOOK.DOC and got the end of thedocument in one step

    Click the Open menu, type the name, when document appears, click Ctrl+End

    xii. Print preview the page containing the drawing features and use the zoomfeature to view this in different percentages.

    Select File & choose Print Preview

    The pages appear in miniature

    Use zoom lens to maximise

    xiii. Use the auto correct feature of work to add short forms for:

    I. AP Apex PolymersII. V & A Vicky & Associates

    III. BPL British Petroleum LimitedIV. PACE PACE Academy of Computer EducationV. IP Informatics Practices

    Select Tools from main menu and choose Auto correct

    In the window fill Replace option with the respective word

    xiv. Provide headers and footers in MYBOOK.DOC (headers should bedifferent for first page, even and odd pages). For first page give headerA ROBOT IN THE HOUSE. For even page give header MYDOCUMENT and right align it, for odd pages give header ODD

    PAGE page and left align it. Also provide page numbers as footer(centrally align)

    Select Header and Footer option from View

    Choose Page Setup from the opened column

    Give specific headers to the specific page, for alignment use the icon in desktop

    For footers choose page no. In the column and fill it respectively

    xv. Type in the following contents in the same document MYBOOK.DOC

    A word processor (such as MS Word) is a computer program that enablesyou to create, edit, print and save documents for future retrieval andrevision.In case of typewriter, input and output are inseparable. It means,whenever a key is depressed i.e., input is fed to machine, a character isprinted on the sheet i.e., and an output is generated. Thus, one is deniedthe facility to shape the output separately. Even in the case of electronictypewriters with memory, the storage capacity for text and facilities for

  • 7/30/2019 Foc Lab Manual - Raja

    10/37

    its manipulation are extremely limited. Facility for storing the input tosome external medium before producing the output provided an idealsolution to this problem.Convert the above text in two-column text.

    Select Columns from Format in main menu and click on 2 columns.

    xvi. Spell check your document an correct all the grammatical as well asspelling mistakes

    Select Tools, click Spellings and Grammer.

    xvii. Close your document

    Select Close from the File, document is closed

    Part C

    Edit the following documents

    Select Insert menu and click the object

    Include the Formula Editor

    Edit the above formulas

    Save the document

    Close the documents

  • 7/30/2019 Foc Lab Manual - Raja

    11/37

    Ex no: 2a

    Table creation, Table formatting and Conversion

    i. Open a new document and insert a table with the following data:

    First Name Last Name Phone AddressSangeeta Malik 5236987 32/8,Dr.Mukherjee NagarPreeti Ahuja 1457896 A-E/269,Shalimar BaghMeenu Kataria 3205623 B-P/81,B.P.ColonyMandeep Kaur 4579681 25/K9, Outram LinesTeena Gulati 1257936 SU-23,Dr.Mukherjee Nagar

    Select Start menu

    Select Programs option Select Microsoft Word from Programs Sub menu.

    Select New option from the File menu of MS Word Window.

    Or Click on the new document icon found on the standard toolbar.

    On the Table menu, point to Insert, and then click Table option.

    Type the number of rows and columns in the Insert Table dialoguebox.

    Or you can use the Draw Table tool from Table menu to create atable. First, draw a line from one corner of the table to the corner

    diagonally opposite in order to define the boundary of the entire table,and then draw the column and row lines inside.

    Type the given data.

    ii. Save the document with address.doc

    On the File menu, select Save option.

    Type the document name as address.doc in Filename textbox.

    Click the Save button.

    iii. Select the first Row and Bold the Text.

    Select the text, which you want to make as Bold, from the table bydragging the mouse across it.

    Click on Bold button on Formatting tool bar.

    Or use shortcut keys CONTROL+B.

    Or on the Format menu, select Font option.

    Select Font Style as Bold in the Font tab.

    Click OK button.

  • 7/30/2019 Foc Lab Manual - Raja

    12/37

    iv. Align the text in the first row to Center and align the text in theremaining rows to Left.

    Block the text in the first row of the table by dragging the mouseacross it.

    Click on Center button on the Formatting toolbar.

    Block the text in the remaining rows. Click on Align Left button on the Formatting toolbar.

    Or on the Format menu, select Paragraph option.

    Select the options from the Alignment combo box in the Indents andSpacing tab.

    Click OK button.

    v. Insert a New Column to the beginning of the table with the following data.S.No

    12

    345

    Use a mouse to place the cursor at the beginning column of the table.

    On the Table menu, point to Insert, and then click Columns to theLeft.

    Type the given data in the inserted column.

    vi. Add a New Row to the End of the Table.

    Use a mouse to place the cursor at the end row of the table.

    On the Table menu, point to Insert, and then click Rows Belowoption.

    vii. Insert a New Row between 3 and 4.

    Place the mouse cursor at the 3rd row of the table.

    On the Table menu, point to Insert, and then click Rows Belowoption.

    viii. Insert a New Column between 4th and 5th Column.

    Place the mouse cursor at the 4th column of the table.

    On the Table menu, point to Insert, and then click Columns to the

    Right option.

    ix. Change the size of the second columns width.

    Place the mouse cursor on the column of the table where you want tochange.

    On the Table menu, point to Table properties, and then selectColumn tab.

    Select the required width from the Preferred width combo box.

  • 7/30/2019 Foc Lab Manual - Raja

    13/37

    Click OK button.

    x. Sort the data according to alphabetical order of First Name.

    Select the Column or cells you want to sort.

    On the Table menu, click Sort. Select the sort options you want.

    Click Options.

    Select Column Only check box.

    Click OK button.

    xi. Delete the third row and third Column from the table.

    Place the mouse cursor on the 3rd row.

    On the Table menu, point to Delete, and then select Rows.

    Place the mouse cursor on the 3rd Column.

    On the Table menu, point to Delete, and then select Columns.

    xii. Create a new row at the top of your table, merge the cells, and add a titleto the table.

    Place the mouse cursor on the first row.

    On the Table menu, point to Insert, and then click Rows above.

    Block that row, by dragging the mouse across it.

    On the Table menu, click Merge Cells.

    Then type the title of the table.

    xiii. Convert the given text into a table.Item Color, Style,

    Bus Blue, A980,

    Van Red, X023,

    Car Green, YL724

    Select the text u want to convert, by dragging the mouse across it.

    On the Table menu, point to Convert, and then click Text toTable.

    Under Separate text at, click the option for the separator character

    you want and then click OK.

    xiv. Split the above table into two tables

    Place the mouse cursor on the table where you want to split it.

    On the Table menu, select Split Table.

    xv. Apply Borders, Shading and Color to the table.

  • 7/30/2019 Foc Lab Manual - Raja

    14/37

    Select the cell, rows, or columns you want to add borders, shadingand color.

    Either right click within your table and choose Table properties orclick within your table and go to Table on the menu bar and chooseTable properties.

    The Table properties dialog box will open. Click on the Borders and Shading button.

    Choose the setting style, the color and the width that you want.

    Click OK then new settings will be added to the table.

    Or on the Table menu, click Table AutoFormat.

    In the Formats box, click the format you want.

    Then click OK button.

    xvi. Spell check your document and correct all the grammatical errors as wellas spelling mistakes.

    On the Tools menu, click Spelling and Grammar Check option.

    The errors are shown in red colour.

    From the list of Suggestions choose one.

    Click change or ignore.

    Continue till all errors are rectified.

    xvii. Save the above document as table.doc

    Select File menu.

    Select Save option.

    Type the document name as table.doc in Filename textbox

    Click the Save button.

    xviii. Close your document.

    Select File menu.

    Select Close option.

    Select Exit from File menu to quit the application.

  • 7/30/2019 Foc Lab Manual - Raja

    15/37

    Ex no: 2b

    ADVERTISEMENT

    A BRIGHT CAREER IN INFORMATION TECHNOLOGY

    TREND REPORT: The Hybrid ModelSolution for Challenges in Managing anOffshore Captive Center

    Abstract

    A recent survey conducted jointly byOutsourcing Center and WiproTechnologies indicates companiesstill have significant challenges inmanaging their captive offshorecenters.

    The survey, which was not a scientificstudy, polled visitors at theOutsourcing Center portal during May2006. It asked CIOs and GlobalSourcing Managers to choose whichof the following four factors is theirkey challenge in managing anoffshore captive center:

    Rapid scalability of workforce andinfrastructure while maintaining thecost advantage

    Aligning the offshore team with yourorganizations culture and businessimperativesLack of a long-term strategy orvision for your captive offshoreoperationLack of adequate managementbandwidth to effectively manage themodel

    This discusses the surveys findingsas well as some best practices tocombat the challenges of a captiveoffshore center. It also discusses thetrend of using a hybrid model partcaptive, part outsourcingas thesolution for these challenges.

  • 7/30/2019 Foc Lab Manual - Raja

    16/37

    To create the advertisement in word.

    Open a new word document.

    Type the heading and select the font as Times New Roman, font style as Title color and

    the font size as appropriate. Select Insert -> Picture -> ClipArt and select the picture.

    Select Tools -> Customize -> Toolbars -> Drawing and Word Art.

    Select any one WordArt Style and insert in the document.

    Type the given article and select Format -> Columns and select two columns.

    Insert the given shapes by selecting Auto shapes from the Drawing Toolbar.

    Apply border to the entire page by selecting Format -> Borders and Shading.

    Select View -> Header and Footer and add the necessary details.

    Save the document as advertisement.doc.

  • 7/30/2019 Foc Lab Manual - Raja

    17/37

    Ex no: 3

    Mail merge and Letter preparation

    i Open a new document and type the following letter.

    Sep 01,2008,Chennai.

    FromVENKATESH .P

    Sri Ranga Apartments,No: 120, II Avenue,T. Nagar.

    Chennai-17.

    To

    Dear Sir/Madam,With the current slow down in hiring within the high- tech field, you must be flooded withresumes from out-placed software engineers such as myself. Please take a moment to considermy qualifications. I believe in particular is highly marketable in this tight market:

    I worked on the team that pioneered the technology that put the PalmPilot on the map.In todays increasingly mobile society, this technology has places to go, and I have ideas thatcould take us to the next step in office independence.Please call me with prospective job opportunities. I am interested in a project managementposition in the $95K range.

    Thank you!

    Venkatesh. P

    Enclosure: Resume.

    Select Start menu

    Select Programs option

    Select Microsoft Word from Programs Sub menu.

    Select New option from the File menu of MS Word Window.

  • 7/30/2019 Foc Lab Manual - Raja

    18/37

    ii. Save the document as Letter.doc.

    Select File menu.

    Select Save option from File menu.

    Type the document name as Letter.doc in Filename textbox.

    Click the Save button.

    iii Send the document to 10 recipients using Mail merge.(Use 10 different addresses)

    On the Tools menu, select Mail Merge option.

    Click on Create and select Form Letter.

    Click on Active Window in the appearing dialogue box.

    On Data source menu, point to Get Data, then select Create DataSource.

    Choose the fields you wish to include in your data source from a list ofdefault field names.

    To add a field name, type the name in the Field Name box and click theAdd Field Name>> button. To remove a field name, click on the nametohighlight it and then click on the Remove Field Name button.

    Click the OK button

    Save your mail merge data source as a document.

    Select Edit Data Source in the appearing dialogue box.

    Enter the information for each person in each of the fields

    After entering all of the desired records, click the OK button.

    To insert a merge field click Insert Merge Field on the Mail Mergetoolbar. And you will need to insert any punctuation or spaces in the fieldlayout.

    Type the given letter. On the Tools menu, click the Merge command on the Mail Merge option.

    Select New Document from the Merge To: drop list.

    Choose All radio button to merge all records.

    Then click Merge button in the dialogue box.

    This will set all the form letters into a new document, which you can saveand/or print.

    iv Close the document.

    Select File menu.

    Select Close option.

    Select Exit from File menu to quit the application.

  • 7/30/2019 Foc Lab Manual - Raja

    19/37

    Ex no: 4

    Drawing Flowcharts

    1.Draw a flowchart to find the sum of first 50 natural numbers2.Draw a flowchart to find the largest of three numbers A,B, and C.3.Draw a flowchart for computing factorial N (N!) Where N! = 1 X 2 X 3 N .

    Right click on the tool bars

    Click and include the drawing tool bar

    Click Auto shape

    Select flow chart

    Click on the symbol .Drag on the document. Add text

    Flowchart

    A flowchart illustrates the steps in a process. By visualizing the process, a flowchart can quicklyhelp identify bottlenecks or inefficiencies where the process can be streamlined or improved.

    Alternate Definition:

    The flowchart is a means of visually presenting the flow of data through an informationprocessing systems, the operations performed within the system and the sequence in which they

    are performed

    MEANING OF A FLOWCHART

    A flowchart is a diagrammatic representation that illustrates the sequence of operations tobe performed to get the solution of a problem.

    Flowcharts are generally drawn in the early stages of formulating computer solutions.

    Flowcharts facilitate communication between programmers and business people.

    These flowcharts play a vital role in the programming of a problem and are quite helpfulin understanding the logic of complicated and lengthy problems.

    Basic Flowcharting Shapes

    Flowcharts use special shapes to represent different types of actions or steps in a process. Linesand arrows show the sequence of the steps, and the relationships among them.

  • 7/30/2019 Foc Lab Manual - Raja

    20/37

    Guidelines in Flowcharting:

    a. In drawing a proper flowchart, all necessary requirements should be listed out in logicalorder.

    b. The flowchart should be clear, neat and easy to follow. There should not be any room forambiguity in understanding the flowchart.

    c. The usual direction of the flow of a procedure or system is from left to right or top to

    bottom.d. Only one flow line should come out from a process symbol.

    (OR)

  • 7/30/2019 Foc Lab Manual - Raja

    21/37

    e. Only one flow line should enter a decision symbol, but two or three flow lines, one foreach possible answer, should leave the decision symbol.

    f. Only one flow line is used in conjunction with terminal symbol.

    g. If the flowchart becomes complex, it is better to use connector symbols to reduce thenumber of flow lines. Avoid the intersection of flow lines if you want to make it moreeffective and better way of communication.

    h. Ensure that the flowchart has a logical startand finish.i. It is useful to test the validity of the flowchart by passing through it with a simple test

    data.

    ADVANTAGES OF USING FLOWCHARTS

    1. Communication: Flowcharts are better way of communicating the logic of a system to allconcerned.

    2. Effective analysis: With the help of flowchart, problem can be analysed in more effectiveway.

    3. Proper documentation are made4. Efficient Coding are developed5. Proper Debugging are made.6. Efficient Program Maintenance is achieved.

    LIMITATIONS OF USING FLOWCHARTS

    1. Complex logic: Sometimes, the program logic is quite complicated. In that case,flowchart becomes complex and clumsy.

    2. Alterations and Modifications: If alterations are required the flowchart may require re-drawing completely.

  • 7/30/2019 Foc Lab Manual - Raja

    22/37

    Example of a Basic Flowchart:

  • 7/30/2019 Foc Lab Manual - Raja

    23/37

    Exercises On Flowcharting:

    1. Draw a flowchart to find the sum of first 50 natural numbers.

  • 7/30/2019 Foc Lab Manual - Raja

    24/37

  • 7/30/2019 Foc Lab Manual - Raja

    25/37

    3. Draw a flowchart for computing factorial N (N!)

    Where N! = 1 2 3 N .

  • 7/30/2019 Foc Lab Manual - Raja

    26/37

  • 7/30/2019 Foc Lab Manual - Raja

    27/37

  • 7/30/2019 Foc Lab Manual - Raja

    28/37

    4. Draw a stacked bar graph to show the sale of each vehicle in comparison with the totalsales for the month.

    Highlight the data to be charted.

    Choose Chart from the Insert menu.

    Choose the chart type: Bar and then select the desired chart sub-type from thesamples on display. click on the Next button.

    In the dialog box, the default radio button for Columns would be selected. If therange is correct, click on the Next button.

    Select titles tab from the dialog box and enter the Chart title, Category (x) axis,value (y) axis.

    Click on the legend folio and select the desired placement where the legends shouldbe displayed .Click on next button.

    Click once on the As object in radio button and specify the object name. Click on the finish button and get the desired chart on the workbook.

    Stacked Bar graph

    0 500 1000 1500 2000

    Car

    Jeep

    Total

    Vehicles

    Total

    Series1

    Series2

    Series3

    5. Draw a Line graph to show the sales trend over the first quarter of the year 2004.

    Highlight the data to be charted.

    Choose Chart from the Insert menu.

    Choose the chart type: Line and then select the desired chart sub-type from thesamples on display. click on the Next button.

    In the dialog box, if the range is correct, click on the Next button.

    Select titles tab from the dialog box and enter the Chart title, Category (x) axis,value (y) axis.

    Click on the legend tab and select the desired placement where the legends should bedisplayed .Click on next button.

    Click once on the As object in radio button and specify the object name.

  • 7/30/2019 Foc Lab Manual - Raja

    29/37

    Click on the finish button and get the desired chart on the workbook.

    Line Chart

    0

    500

    1000

    1 2 3 4

    months

    Total

    Car

    Auto

    Jeep

    Van

    Total

    6. Type the following data in column F

    F

    1 Cost

    2 200000

    3 700000

    4 900000

    5 1000000

    Draw an XY graph comparing two numerical variables viz., cost of the vehicle andsale of the vehicle.

    Enter the above data to the worksheet . Select the total and cost columns from the worksheet.

    Choose Chart from the Insert menu.

    Choose the chart type: xy(scatter) and then select the desired chart sub-type from thesamples on display. click on the Next button.

    In the dialog box, if the data range is correct, click on the Next button.

    Select titles tab from the dialog box and enter the Chart title, Category (x) axis,value (y) axis.

    Click on the legend tab and select the desired placement where the legends should bedisplayed .Click on next button.

    Click once on the As object in radio button and specify the object name. Click on the finish button and get the desired chart on the workbook.

  • 7/30/2019 Foc Lab Manual - Raja

    30/37

    XY chart

    0

    500000

    1000000

    1500000

    0 500 1000

    Total

    C

    ost

    Series1

    Problem 2:

    Create title for the graph as Sales Report for the first quarter 2004

    1. Create legends for all the data ranges in the graphs/charts drawn in problem 1.

    Click on the chart to which, you wish to apply legend .

    Choose chart options from the chart menu or right-click the chart to select chartoptions

    Select the titles tab from the dialog box and give the chart title as specified above.

    Select the legends tab from the same dialog box and check the show legend option .

    choose the desired placement where the legends should be displayed on the chart.

    Sample chart with legends

    Line chart

    0

    500

    1000

    Car Auto Jeep Van Total

    vehicles

    total

    Series1 Series2 Series3 Series 4

    2. Display horizontal vertical grids.

    Click on the chart to which, you wish to apply gridlines .

    Choose chart options from the chart menu or right-click the chart to select chartoptions

  • 7/30/2019 Foc Lab Manual - Raja

    31/37

    Select the gridlines tab from the dialog box and check the major and minor gridlinesoption for x and y-axis.

    Then press ok button to draw gridlines on the chart

    Sample chart with Gridlines

    Stacked Bar graph

    0 500 1000 1500 2000

    Car

    Jeep

    Total

    Vehicles

    Total

    Series1

    Series2

    Series3

    Problem 3:

    Write macros for the following:

    1. To auto fill a range viz., A1..C5 with values starting from 1, increasing in steps of 5.

    2. To draw graphs automatically for the problem given in problem 1.

    Highlight the data to be charted. Press F11 key to draw the graph automatically.

  • 7/30/2019 Foc Lab Manual - Raja

    32/37

    Ex no: 6

    Formula - Formula editorPROBLEM 1:

    GLOBAL SOFT Company keeps the employees payroll data in a worksheet as shown below.

    A B C D E

    1 GLOBAL SOFT COMPANY

    2 Emp No. Name Salary

    3 1 Meena 24500

    4 2 Vishal 10500

    5 3 Elisa 14790

    6 4 Richa 14000

    7 5 Swetha 15250

    8 6 Dravid 16000

    9 7 Sourav 1410010

    i) Enter the above data in a worksheet and save the workbook as EMPLOYEE.XLS

    Choose New from the File menu.

    Starting from cell A1, build the above table.

    Choose Save from the File menu or click on the Save button.

    In the dialog box, specify file name as EMPLOYEE.XLS.

    ii) Calculate HRA, DA, PF and Net salary for each employee.

    HRA - 20% of basic salaryDA - 28% of basic salaryPF - 10% of basic salary

    a. Type HRA, DA, PF, Net salary in cells D2, E2, F2 & G2.b. Enter the formula (=C3*20/100) in cell D3 to calculate HRA.c. Drag through the range you want and then press enter.d. Similarly calculate DA, PF, Net salary for each employee.

    iii) Save the workbook again.

    a. Click on the save button.

  • 7/30/2019 Foc Lab Manual - Raja

    33/37

    PROBLEM 2:

    The Hindustan departmental store has organized an Off Season sale. The details of the items onsale and the percentage of discount offered are entered in a workbook as shown below.

    A B C D E

    1HINDUSTAN DEPARTMENTAL STORE

    2 Item Name Original Price Discount(%)

    SellingPrice

    3 Ponds 98 10

    4 Vicco 88 8

    5 Lakmi 102 9

    6 Farex 300 12

    7 Denim 500 158 Biotiq 400 10

    9

    i) Enter the given data in a workbook and save the workbook as HINDUSTAN.XLS

    Choose New from the File menu.

    Starting from cell A1, build the above table.

    Choose Save from the File menu or click on the Save button.

    In the dialog box, specify file name as Hindustan.xls.

    ii) Calculate the Selling Price of each item and display in column D of the sheet.

    Formula to calculate the selling price of an item:

    Selling price = original price ((discount/100)* original price)

    b. Enter the given formula in cell D3 to calculate selling price.c. Drag through the range you want and then press enter.

    iii) Save and close the workbook.

    d. Click on the save button to save your workbook.e. Choose Exit option from the file menu to close the workbook

  • 7/30/2019 Foc Lab Manual - Raja

    34/37

    PROBLEM 3:

    Create an EXCEL sheet with consumer number, name, type (H / C), previous reading, currentreading, chargeable unit, and cost per unit and calculate the total amount to be paid using thefollowing condition.

    Starting from cell A1, build the table with consumer number, name, type (H / C),previous reading (PR), and current reading (CR).

    Calculate chargeable units (CU) using the formula CU= CR-PR

    Calculate the Cost/Unit using the above table by writing the formula using IF and ANDconditions in the formula bar.

    Calculate the amount as the product of CU and Cost/Unit.

    PROBLEM 5:

    Create Transport reservation sheet with following description.Passenger Name (not to exceed 20 characters) with interactive display and a request to enterthe name Options for gender Male/Female Seat no, class: 1st, 2nd, 3rd select as required.Amount 1st class Rs.500, 2nd class Rs.400, 3rd class Rs.200

    Starting from cell A1, build the table. To give interactive display and a request to entererror message, select Data -> Validation and give the corresponding settings.

    Display the amount using the formula bar

    PROBLEM 6:

    Create an electronic spreadsheet for income tax calculation by entering name, gross salary andsavings

    Upto 1.5 lacs ------ NIL1.5 3 lacs ------- 10%3 5 lacs ------- 20%5 25 lacs ------- 30% Calculate the taxable amount and tax for individual person.

    Starting from cell A1, build the table with name, gross salary and savings. Find thetaxable amount

    Calculate the tax using the above conditions in the formula bar.

  • 7/30/2019 Foc Lab Manual - Raja

    35/37

    Ex no: 7

    SPREAD SHEET-INCLUSION OF OBJECTS, PICTURES AND GRAPHICS,PROTECTING THE DOCUMENT AND SHEET, AUTOFILTERING

    Steps for Inclusion of Objects

    Select the Object option from the Insert menu.

    In the dialogue box Create New and Create from file tabs are displayed.

    Select Create New and object type for including a new object in the sheet.

    Select Create from file and browse the file for including an existing object to the sheet.

    Steps for inserting pictures and Graphics

    Select the Clip art option from Picture sub-menu of the Insert menu. From the dialogue box displayed click on the graphic selected by you and click on the

    Insert Clip to add the image to the worksheet.

    Preview Clip to view the image full-size before adding it to the worksheet Drag thebottom, right corner of the preview window to resize the image and click the " x" closebutton to end the preview

    Add Clip to Favorites will add the selected image to your favorites directory that can bechosen from the Insert ClipArt dialog box.

    Find Similar Clips will retrieve images similar to the one you have chosen.

    Continue selecting images to add to the worksheet and click the Close button in the top,

    right corner of the Insert ClipArt window to stop adding clip art to the worksheet

    Steps For Protecting A Document

    Choose the protect sheet command from the protection sub-menu of tools menu.

    Type password and click on the ok button

    Re enter the password to confirm that you have not made any mistake and click on theOK button again.

    Save and close the worksheet

    Reopen the workbook using the file open command. Now if you try to edit the workbookone message box will appear informing you that since the cells are protected you cant

    modify them. Click on the OK button to close this message box..

    To unprotect the document choose unprotect sheet command from the Protection submenu

    of Tools menu.

    Steps for entering data using Form command

  • 7/30/2019 Foc Lab Manual - Raja

    36/37

    Choose the form command from the Data menu.

    Type the required data in the fields

    Problem:

    Create an EXCEL sheet for the student details in a class for grade calculation:(i) Passed in all subjects (ii) Avg 90 grade is O, Avg 80 grade is A, Avg 70 grade is B,Avg 60 grade is C, Avg 50 grade is D. Apply filtering options.

    Starting from cell A1, build the table with student number, name, marks for 3 subjects.

    Check the result of the student and display it. Calculate the average

    Calculate the grade using result and average in the formula bar.

    Steps For Filtering options

    Select all the data fields including the titles.

    Choose the Autofilter command from the Filter sub-menu of Data menu. The fields can now be viewed customizely.

  • 7/30/2019 Foc Lab Manual - Raja

    37/37

    Ex no: 8

    SORTING AND IMPORT/EXPORT FEATURES

    Steps for Sorting data

    To execute a basic descending or ascending sort based on one column, highlight the cellsthat will be sorted .

    Click the Sort Ascending (A-Z) button or Sort Descending (Z-A) button on the standardtoolbar.

    Click on OK to execute the data sort command.

    Steps for Import Features

    Select Import data option from Import External Data sub-menu of the Data menu.

    Select the data source from the dialogue box displayed.

    Click on OK to import.

    Steps for Export Features

    Choose Save as command from the file menu

    In the dialog box opened click on the combo list for the save as type option and select theformat in which you wish to save the current file.

    Click on the save buttonExcel would display a message box which will alert you that if you save the file in the new

    specified format some of the data and features of the current file would be lost and only theresult of these formulas would be saved. Click on the Yes button if you are sure that youneed to save the file in the newly specified format.