Annamalai University: Diploma in Computer Applications (DCA)
Annamalai University: Diploma in Computer Applications (DCA)
270E260
                                                    LAB - II
               ANNAMALAI UNIVERSITY
                DIRECTORATE OF DISTANCE EDUCATION
                     PROGRAMMING LAB - II
              MS OFFICE AND VISUAL PROGRAMMING
Copyright Reserved
(For Private Circulation Only)
2
                                            1
                                 MS -Word 2000
Exercise 1: -
1.1 Open MS-Word. In the new document that appears, type the following:
Office Assistant
When you have a question about a Microsoft Office program, you can ask the Office
Assistant. For example, to get Help about how to create a table, type, “How do I create a
table” in the Assistant.
If the correct topic doesn't appear in the Assistant balloon, click None of the above, look
for more help on the Web at the bottom of the list of topics. You will get suggestions on
how to phrase a question to the Office Assistant or how to narrow your search by using
keywords. If you still can't find the information you want, you can send feedback to
improve future versions of Help and be automatically connected to the Microsoft Office
Update Web site to search for help there.
The Assistant automatically provides Help topics and tips on tasks you perform as you
work before you even ask a question. For example, when you write a letter, the Assistant
automatically displays topics to help you create and format a letter.
The Assistant also displays tips on how to use the features in the Office programs more
effectively. Click the light bulb next to the Assistant to see a tip.
You can also select a different Assistant and set it to operate so that it meshes with the
way you work. For example, if you prefer using the keyboard to using the mouse, you
can have the Assistant display tips on shortcut keys. Because all Office programs share
the Assistant, any options you change will affect the Assistant in your other Office
programs.
Just click Microsoft Word Help on the Help menu. If the Assistant is turned on, it
appears. If the Assistant is turned off, the Help window appears. To type a question in the
Help window, click the Answer Wizard tab. To scroll through a table of contents for
Help, click the Contents tab. When you want to search for specific words or phrases,
click the Index tab.
To see a ScreenTip for a menu command, toolbar button, or screen region, click What's
This? on the Help menu, and then click the item you want information about.
                                             2
To see a ScreenTip for a dialog box option, click the question mark button in the dialog
box, and then click the option. (If you don't see the question mark button, select the
option and then press SHIFT+F1.)
To see the name of a toolbar button, rest the pointer on the button until the name appears.
After finishing typing, Switch to the Print Layout view, save the file as wordhelp.doc.
and close the file after saving the changes.
1.2. Open the wordhelp file. Change the position of each paragraph in the document
(i.e., rearrange the paragraphs) using the mouse.
Note:
ü     Do not use the cut and copy option in the Edit menu or keyboard shortcuts for the
same.
1.3. Replace the existing text in each paragraph, with another text. That is the text in
the paragraph should get deleted automatically as the user types new text.
1.4. Start typing a new paragraph at the right side of the page using the click-and-type
feature in between the existing paragraphs. Insert a small picture at the right side of the
page in between any one of the paragraphs.
Note:
    Click-and-type feature will work only in Print Layout and Web Layout view.
     Ensure that the document is in either one of these two views.
    In case if the feature does not work, check whether the feature has been enabled
     or not on the Edit tab of the Options under the Tools menu.
Exercise 2: -
          2.1. Place a header on the page that gives the page number and the name of the
          file, i.e., Office Assistance. The page number must not be entered manually,
          but must be added using the page number option.
          2.2.Make the paragraphs into a picture bulleted list, i.e., each of the paragraphs
          should start with a picture bullet. The bullet symbol should be.
          2.3. Adjust the spacing so that within the paragraphs lines contain 1 spacing
          and between paragraphs there is 1.5 spacing.
           2.5. Create a text box, which should contain the text – Asking for Help from
           the Office Assistant and place the text box in the middle of the document.
           2.6. Add a border for the entire page (draw a rectangle around the page), and
           give gray-scale shading for the heading.
           After these changes are made, the document must look like the one given in
           the box as shown in the Figure 1.1.
Exercise 3: -
3.1. Open the document wordhelp.doc. Notice the text underlined with thin wavy
lines? Make Word ignore all the errors. Convert the text of the document into a table so
that it looks as given below (Figure 1.2):
Office Assistant
Asking for Help from the Office Assistant
    When you have a question about a Microsoft Office program, you can ask the
      Office Assistant. For example, to get Help about how to create a table, type How
      do I create a table in the Assistant.
    If the correct topic doesn't appear in the Assistant balloon, click None of the
      above, look for more help on the Web at the bottom of the list of topics. You will
      get suggestions on how to phrase a question to the Office Assistant or how to
      narrow your search by using keywords. If you still can't find the information you
      want, you can send feedback to improve future versions of Help and be
      automatically connected to the Microsoft Office Update Web site to search for
      help there.
    The Assistant automatically provides Help topics and tips on tasks you perform as
      you work before you even ask a question. For example, when you write a letter,
      the Assistant automatically displays topics to help you create and format a letter.
    The Assistant also displays tips on how to use the features in the Office programs
      more effectively. Click the light bulb next to the Assistant to see a tip.
    You can also select a different Assistant and set it to operate so that it meshes
      with the way you work. For example, if you prefer using the keyboard to using
      the mouse, you can have the Assistant display tips on shortcut keys. Because the
      Assistant is shared by all Office programs, any options you change will affect the
      Assistant in your other Office programs
 3.2. Highlight all occurrences of the word “Help” by making it Courier New, 10, Bold.
      Write a macro for achieving this.
 3.3. Assuming that you are going to send copies of this document to all your friends,
      type their names and addresses on the bottom left corner of the document. This has
      to be done using mail merge.
Exercise 4: -
4.1. Open an existing file wordhelp. Create a new file and type in it the text:
4.2. In the last paragraph of the document, create a footnote for the word habit. The
text for the footnote must be:
Use Help to make things look better.
Exercise 5: -
                                   MS - Excel 2000
Exercise 1: -
1.1. Enter data in the following sequence for months as Jan,Feb.Using Fill Handle
Method display the sequence as Jan,Feb,…….etc.
Exercise 2: -
2.1.      Consider the following table.
2.2.4. Apply number format to the column “Total amount” to display two decimal
places.
Exercise 3: -
3.1. Using the table given below, create a Pivot Table to summarize the given source
table. Filter the list for the customer “Balu” using AutoFilter and conceal all the other
records in the table.
Exercise 4: -
4.1. Using the table given below, plot a chart against the data.
Name                   Salary                     Gross                Comm
Shalini                12000                      12000                500
vijay                  13000                      13000                400
srivalli               14000                      14000                350
balu                   16000                      16000                200
Isha                   19000                      19000                500
4.2. Create an excel document with data(s) that could be used for an annual report of a
company or a list of student details of software training institute or monthly salary details
of a company or customer details of a company. Then convert this document to HTML
format, so that it can be published as a web page on the Intranet or Internet. Finally, open
the page to view it in a browser.
                                                     8
Exercise 1: -
1.1. Open a Blank presentation with the Title Slide layout. Give the title as
“Company Hierarchy”
1.2. Open the Slide Master and set the Design Template as “Capsules”. Set the
bullets and the style in the subtitle area (for the 5 levels) as follows:
1.3. Insert another slide with the Bulleted List layout. Type the following text under the
title “Companies Profile”:
5-Fun Face
Circle
Cylinder
Rectangle
Exercise 2: -
2.1. Insert ClipArt in the slide, which has the title “Company Hierarchy”, and drag it to
center of the slide.
Add one subordinators under each of them. Font size should be 22.
Add two subordinators under each of them. Font size should be 20.
2.3. Create a table and enter the following text in it. Name it as projects
Exercise 3: -
3.1. Import the circles.bmp file in the windows directory to the AUTO SHAPES slide
created in the first chapter.
3.2. Create a .RTF file with the following lines as its contents:
Future Plans
Investors
Save the file in the name Details.rtf and import the file as an outline.
3.4. Move the Future Plans slide to the end of the presentation.
3.8. Create a custom show named “show1” in which only the Introduction and the
Projects slides appear. How can we view the custom show?
3.9. Save the presentation as a Web page. View the Web page in the Internet Explorer
3.10. Create an action button “Click to enter your comments” in the last slide that opens
the Notepad application, when clicked.
                                             11
                                  MS-Access 2000
Exercise 1: -
1.     In the database created, Create a table Dept
Dept Table Structure:
Deptno         Number
DeptName       Text
Location       Text
Insert the following values:
DeptNo                         DeptName                     Location
10                             Admin                        Chennai
20                             Marketing                    Mumbai
30                             Sales                        Delhi
40                             Purchase                     Bangalore
10. Display all the Employee names and their department name.
11. Calculate the HRA (30% of basic) for all the Employee s.
15. Calculate the total salary (basic+DA) paid for each department.
17. Display the Average salary paid for all the Employees.
22. Delete the Employee details where the department number is 30 from Emp table.
MS Word 2000
Exercise 1:-
Solution 1.1
Follow these points to complete this exercise:
  To create a new document, press Ctrl + N, or click on the New button on the
   standard toolbar.
  Type the first line of the document – Office Assistant.
  Make it Bold, Underlined and Centered by pressing the key combination, Ctrl + B,
   Ctrl + U and Ctrl + E respectively. Or press the appropriate buttons on the formatting
   toolbar.
  Type in the rest of the text, without pressing Enter. Wherever a new paragraph starts,
   press Enter.
  After typing, switch to the Print Layout view by choosing Print Layout from the
   View menu.
  Save the document by pressing Ctrl + S. The Save As dialog box appears. Specify
   the name of the file as wordhelp – in the File Name box and press enter.
  Close the file by pressing Ctrl + W or by choosing Close from the File menu.
Solution 1.2
Solution 1.3
Solution 1.4
  Place the mouse cursor at the right side of the page just before the last paragraph by
   double clicking the mouse.
  Then start typing the text. The text will get right aligned as the user types the text.
          To insert a picture in between the paragraphs at the center or right side of the page, follow the
          steps given below:
  Double click the mouse at the place where the picture needs to be inserted. Select
   Picture  From File on the Insert menu. This brings Insert Picture dialog box on
   the screen. Select a picture file (the file can be a bitmap or gif etc.,) and click Insert.
   This places the picture at the place where the mouse cursor is blinking.
Exercise 2: -
Solution 2.1
  To insert a header, choose View  Header and Footer. A dotted rectangle appears
   for the header and footer and the insertion point appears at the top left corner of the
   header. Press Tab once to bring the insertion point to the center, and type out the text
   “Office Assistance”. Choose Insert Page Number from the Header and Footer
   toolbar, and the page number is inserted.
Solution 2.2
  Place the insertion point in the first paragraph, and choose Format  Bullets and
   Numbering. The Bullets and Numbering dialog box appears. Click Picture button,
   and from the Picture Bullet dialog box, click Pictures tab, if it has not been
   selected. Choose the desired picture bullet and click OK.
  Repeat the procedure for the other paragraphs. As a shortcut, place the insertion
   point on each of the other paragraphs and press Ctrl + Y (remember, Ctrl + Y repeats
   the previous action).
Solution 2.3
  Choose Format  Paragraph. The Paragraph dialog box appears. From the Line
   Spacing box, choose Single. Click OK. Repeat the same procedure for the other
   paragraphs.
  Place the insertion point on the line between two paragraphs and choose Format 
   Paragraph. From the Line Spacing box, choose 1.5. Click OK. Repeat the same for
   the space between other paragraphs.
                                            15
Solution 2.4
  Select the text that is to be converted into the two-column format. Choose Format 
   Columns. Choose two from the Presets group. Click OK.
Solution 2.5
  Choose Insert  Text Box. Place the text box in the middle of the document. Enter
   the text “Asking for Help from the Office Assistant” inside the text box and center
   the text. Right click on the text box and from the pop up that appears, choose Order
    Bring Forward. Right click again on the text box and choose Format Text Box.
   The Format Text Box dialog box appears. From the Color box, choose No Line.
Solution 2.6
  Choose Rectangle from the Drawing toolbar (if the toolbar is not visible, right click
   on one of the other toolbars and from the popup that appears, choose Drawing).
   Draw the rectangle so that it covers the entire page. Initially, the text inside the
   rectangle will not be visible. Right-click on the rectangle and from the popup,
   choose Order  Send Behind Text. The text will appear now.
  Select the heading and choose Format  Borders and Shading. From the Borders
   and Shading dialog box, select the Shading tab folder. From the style drop down
   box, choose Gray-25%. Click OK.
Solution 2.7
To create an index for the above document, follow the steps given below:
      Open the document first and place the insertion point at the beginning of the file.
     Choose Index and Tables from the Insert menu.
        The Index and Tables dialog box appears on the screen. Choose the Index tab, if
     it has not been selected. Select a format for the index from the Formats option in the
     lower left corner of the Index and Tables dialog box. Specify the type whether the
     index should be Indented or Run-in.
       In the Columns option, specify the number of columns in which the index has to
     be created. Choose Mark Entry option to bring the Mark Index Entry dialog box.
     Select a word or phrase in the document and place the cursor over the dialog box or
     in the Mark entry field. This places the selected text in the Mark Entry field.
     Click the Mark button to mark the selected text as an index entry. Continue this
     process till all the words or phrases in the document gets selected. Then click the
     Close button to close the dialog box.
                                            16
       To view the list of words selected for the index entries alphabetically, move to the
     end of the document. Choose Index and Tables on the Insert menu. The Index
     and Tables dialog box appears on the screen. Click the OK button to generate index
     in that file.
Exercise 3: -
Solution 3.1
       Certain text may still remain underlined even after choosing Ignore All. This is
     because the nature of the error chosen to ignore is different from the nature of the
     error that has been identified.
       Select the text of the entire document (except the heading) and choose Columns
     from the Format menu. In the dialog box that appears, choose one from the Presets
     group and choose OK. The whole document is converted into a single column
     format.
      Select the text again and choose Convert Text to Table... from the Table menu.
     The entire text of the document is converted into a table, with paragraph in a row.
     Delete the extra, empty rows that appear in the table, by selecting the row and
     choosing Table  Delete Rows.
Solution 3.2.
      Select the first occurrence of the word “Help”, and choose Tools  Macro 
     Record New Macro. The Record Macro dialog box appears. Choose the Keyboard
     option from the Assign macro to group and in the Customize Keyboard dialog
     box, press any key combination that has to be assigned to the macro (for example,
     Ctrl + Q). Click Assign and then click Close. The macro recording starts.
       Now make the changes to the selected text. Make it Courier New, 10 and Bold.
     Click Stop Recording on the Macro Recorder.
      Press Ctrl + F to find the word and type in the word Help and press Enter. The
     word is selected. Bring the focus to the window containing the selected word. Press
     Ctrl + Q. Repeat this procedure until all occurrences of the word are highlighted.
                                            17
Solution 3.3.
        To perform a mail merge, a data source must be created first. Open a new
         document, and type the names and addresses of all the persons to whom the
         document has to be sent, preferably in the following format:
Exercise 4: -
Solution 4.1.
    Open the file wordhelp.doc. Navigate to the text box and select a text.
    Choose Hyperlink from the Insert menu or press Ctrl + K.
    In the Insert Hyperlink dialog box, click on File… below Browse for:
    The Link to File dialog box appears subsequently, and from the list of files,
   choose link (the name of the hyperlink destination file), and click OK.
    The hyperlink is created.
                                           18
Solution 4.2.
 To place a footnote, position the insertion point after the word habit and choose
 Footnote... from the Insert menu. The Footnote and Endnote dialog box appears.
     Choose Options, and after ensuring that we are in the All Footnotes tab, choose
   Beneath Text in the Place At box. Choose OK.
     The separator line appears immediately after the line where the text ends in the
   page. Type in the text of the footnote, and to come back to the original text in the
   document, use the mouse.
     Save the document and close it.
Exercise 5: -
Solution 5.1.
Working with the Table.
Solution 5.2.
       Find and Replace Word Document
   - Type the following content in a new document:
       (Word can find and replace the grammatically inflected forms of a word.)
   - Click Replace option on Edit menu
Solution 5.3.
       Inserting Picture
   -   Double click the mouse at the place where the picture needs to be inserted.
   -   Select Picture -> From File on the Insert menu. This brings Insert Picture
       dialog box on the screen.
   -   Select a picture file (the file can be a bitmap, GIF, or JPEG etc.,) and click Insert.
   -   This places the picture at the place where the mouse cursor is blinking.
Solution 5.4.
       Spelling and Grammar
   - Click the Spelling and Grammar option on the Tools menu.
                                          20
          From Address
          AU Computer Training Center,
          Chennai – 6.
          To Address
   Enroll No.        Name                  Address
   101               Raja                  1, New Street, Chennai –8
   102               Roja                  2, Old Street, Chennai – 9.
   103               Sivakami              3, Monitieth Road, Chennai – 8.
   104               Omar                  4, Mosque Street, Chennai – 5.
  Body:
  Sir/Madam,
  This is to inform you that you will be having a test on MS office Tools on Sunday 26-
  03-2003.
  Thanks and Regards,
  Authorized Signatory.
  Solution:
    Open a New document.
    Type the content as given above except the table. Leave space below the to
      address.
    Click Mail Merge option on Tools menu. Mail Merge Helper document window
      will open.
    Inside Main document category click Create button and select Form Letters.
      Then click Active Window.
    Inside Data Source category click Get Data and select Create data source (If
      you already have the table then select Open Data Source.)
                                       21
 Set of Field name list will be displayed inside Field names in header row box.
  Remove unwanted field by selecting and clicking Remove Field Name button.
 If you want to enter new field name, type the field name inside Field Name: text
  box and click Add Field Name button.
 After inserting the field press Ok button and give the name to save the table (this
  table will be stored in MS-Word format).
 Click Edit Data Source button to enter the records (The data Form window will
  open as show below)
 Click Add New button to insert new records. After entering four records (Records
  are given above in the table) press Ok button to quit the screen.
 Mail Merge toolbar will appear in the toolbar area.
 Click Insert Merge Field option on Mail Merge Toolbar.
 Keep the cursor below the To Address in the document and click any one of the
  field one by one from Insert Merge Field option
 In the same toolbar click Merge to New document option to merge the records in
  the document.
                                               22
                                     MS Excel 2000
Exercise 1: -
Solution 1.1.
        Enter the months Jan and Feb in the consecutive cells (row wise or column wise).
        Select the two cells. Position the cursor on the bottom right corner of the cell till a
         ‘+’ sign appears.
        Drag the Fill Handle to 10 columns (if cells are filled row wise or column wise)
         and then release the mouse button.
Solution 1.2.
Solution 2.2
2.2.1. The steps to be followed to name the “Actual amount” column are:
2.2.2. To align the entries, select the columns “Actual amount”, ‘Tax” and “Total
       amount” and click the Centre alignment button.
2.2.3. To hide the “Tax” column, right-click the column header and then select Hide from
       the pop-up menu.
      Select the cells of the Actual amount column and select Format  Cells.
      Click the Number tab in the dialog box that appears.
      Select Number from the Category list box and click OK.
Exercise 3: -
Solution 3.1.
The steps to be followed when using the Pivot Table wizard are:
      A dialog Box appears whether you want to put the pivot table in the existing sheet
       or in the new sheet.select the Option New sheet and click Finish.
      Drag cust_Id into Drop Page field Here, Cust_Name into Drop Row Field Here,
       drag the other fields and drop it in the drop column fields and then drag Unit price
       and drop it in the drop data items.
      Select the format and data options, as well as the page layout (down, then over)
       from the drop down list
      With the generated Pivot Table, analyze the data field with the corresponding
       base (page) field and records.
      Select the entry i.e. the customer “babu” in the table and filter the records using
       AutoFilter from the Data menu.
      Write a relevant key factor for which the list has to be filtered.
Exercise 4: -
Solution 4.1
      Select the range of values against which the chart has to be drawn.
      Click the chart icon and select the type of chart (select Column).
      Give a title to the chart.
      Using the wizard, enter the required details and click Finish. The chart is created
       as shown below:
Solution 4.2.
Follow the steps to publish an excel document as a web page on the Intranet or WWW
      The Excel opening screen appears displaying a blank workbook labeled Book1.
      Type the data(s) as given in the table or type your own data(s).
      Select Save as Web Page from the File menu. The Save As dialog box appears as
       shown in Fig. 1.3
Note
      If the Add interactivity option has not been chosen, then the selected item i.e., the
       entire workbook will be published as a static page without any interactive
       functionality. After publishing the page the user cannot make any modifications
       on this page.
      In the Save in list, select the location on which the user wants to save the
       workbook.
      Click the Change Title button to apply or change a title for the web page.
                                       26
 To save the entire workbook, select Entire Workbook and click save.
   Select the item to be published from the Choose box. The item could be a range
    of cells or items on the sheet1, sheet2 or sheet3. Here we are going to choose a
    range of cells, so choose Range of cells from the Choose list.
   The action displays another field below the Choose field, wherein the user has to
    select the range of cells to be published.
   Click the button on the right side of the field to select range of cells on the
    worksheet.
   Select the range of cells to be published on the worksheet by clicking and
    dragging the mouse from the place where the data starts and ends as shown in the
    Fig
                                       27
   Click the button again on the right side of the Publish as Web Page – Range
    Dialog box as shown in the above figure to go back to the Publish as Web Page
    dialog box.
   Now the user can see the range of cells selected to be published in the field.
   Check the Add interactivity with option under Viewing options, then select the
    type of interactivity we want for our web page.
Spreadsheet functionality: This allows us to enter, update, copy, move, delete, sort
and filter data.
Pivot Table functionality: This allows us to change the layout of a PivotTables data
or sort, filter and change the data as well.
   By default, Spreadsheet functionality will be selected in the box. Let the option
    be as it is.
   Click the Change button to change the title of the web page.
   To view the web page in a web browser, enable the open published web page in
    browser check box.
   Finally, click the Publish button to view our web page (as shown in the Fig. 1.6)
    in a browser.
28
                                           29
Solution 1.1.
      Open the PowerPoint application. Choose Blank Presentation from the dialog
       box and click OK. If the PowerPoint application is already open, choose File
       New…. The New Presentation dialog box will appear. Choose Blank
       Presentation and click OK.
      In the New Slide dialog box choose Title Slide layout and click OK.
      Choose the placeholder that says, “Click to add title” and type “Company
       Hierarchy”. Set its font style to Tahoma, 44 and Bold. On completion, click
       anywhere outside the placeholder. Thus the first slide appears as shown in Fig 1.7.
                                Fig 1.7
      Choose File Save As…. In the File Name text box of the Save As dialog box,
       enter the name of the presentation as Company profile. In the Save as type
       textbox select Presentation. Click the Save button.
Solution 1.2.
      Choose View Master Slide Master. This opens the Slide Master.
      Choose Format Apply Design Template. The Apply Design Template dialog
       box opens.
      Select the “Capsules” design and click Apply.
      In the Master slide, click on the design and move it up and then increase the area
       for the subtitle (if necessary).
                                            30
      Type the following in the “Click to edit master subtitle style” placeholder:
       Click to edit Master text styles
           Second level
                  Third level
                          Fourth level
                                 Fifth level
      Set the corresponding bullets for each level. The bullets should be 100% of the
       text. If desired, the colour of the bullets could be changed.
      Select the first two levels and set the font style to Bold.
      Save the presentation
On completing the above steps, the screen appears as shown in Fig 1.8.
                                 Fig 1.8
Solution 1.3.
      Choose Insert New Slide…. The New Slide dialog box appears.
      Choose Bulleted List layout and click OK.
      In the “Click to add title” placeholder type “Company's Profile”. Set its font style
       to Bold.
      In the “Click to add text” placeholder, type the following at the corresponding
       levels:
Solution 1.4.
      Place the mouse pointer inside the Bevel. Click and drag the mouse on the slide to
       draw the donut. Release the mouse key.
      Place the mouse pointer inside the donut. Click and drag the mouse to draw the
       can. Release the mouse.
      Place the mouse pointer near the drawn figure. Click and drag the mouse on the
       slide to draw Smiley Face. Release the mouse.
On completing the above steps, the slide will appear as shown in Fig 1.10.
The Slide Sorter View helps us to see all the slides in a single screen. The Slide Sorter
View can be opened in two ways:
                                            32
 Click the Slide Sorter View button in the lower left corner of the screen. (OR)
Fig 1.11
Exercise 2: -
Solution 2.1.
Solution 2.2.
      Choose Insert Pictures WordArt. Choose the style and type Company
       Hierarchy.
      Place the WordArt in top of the slide and save the slide.
Solution 2.3.
Exercise 3: -
Solution 3.1.
On completing the above steps, the slide will appear as shown in Fig 1.12.
                                 Fig 1.12
Solution 3.2.
       Future Plans
       Investors
Solution 3.3.
Solution 3.4.
      Click the Slide Sorter View button in the lower left corner of the screen (OR)
       Choose ViewSlide Sorter. All the slides in the presentation will be displayed.
      Click on the Future Plans slide.
      Drag the slide and drop it after all the slides. Thus the Future Plans slide is set as
       the last slide in the presentation.
Solution 3.5.
The Slides can be deleted by using both the Outline View and the Slide Sorter View.
      Choose the Outline View in the lower left bottom of the screen.
      Select the AUTO SHAPES slide in the Outline pane.
      Press the Delete key (OR) Choose Edit Delete Slide.
      Repeat the above steps for the other two slides.
                                            35
Note
 If the slide is deleted using the delete key, then a dialog box appears as shown in Fig
   1.13. Click on the OK button to confirm the deletion.
Fig 1.13
Solution 3.6.
Solution 3.7.
      Choose either the Outline View or the Slide View or the Normal View.
      Choose Slide Show Custom Animation…. The Custom Animation dialog
       box appears.
      Check the Title1 check box in the Check to animate slide objects frame.
      Select Effects tabs and in the Entry Animation and Sound frame, select Fly in
       the first list box and From Left in the second list box.
      Check the Text 2 check box in the Check to animate slide objects frame.
      In the Entry Animation and Sound frame select Spiral in the first list box (The
       other list box is disabled for this option).
      Click the Preview button to view the effect.
      Click OK to accept the settings.
In the Slide sorter view, a transition symbol appears in the lower left corner of the slide.
On clicking it, a preview of the animation is shown.
                                          36
Solution 3.8.
      Choose Slide ShowCustom Shows…. The Custom show dialog box opens.
      Click the New button. The Define Custom Show dialog box appears. In this
       dialog box the user can arrange the slides in a unique order for later playback.
      In the Slide Show name text box type Custom1.
      Select the slides (by pressing the Shift key and clicking on each of the slides).
      Click the Add button to copy them to the window on the right.
      Click OK.
      Click the Close button to close the Custom Shows dialog box.
      Choose Slide ShowCustom Shows…. The Custom Shows dialog box appears.
      Select Custom1.
      Click Show
Note
      If a slide has to be removed from the Custom show, select the appropriate slide
       and click the Remove button.
      The order of the slides in the custom show can be rearranged by clicking the
       desired slide and by using the up and down arrows at the right edge of the
       window.
Solution 3.9.
Solution 3.10.
Save the Presentation and view the slide selecting Slide Show.
                                38
                   MS – ACCESS 2000
1.
2.
               EmpNo EName Basic DA Deptno
               1     Sundar    2400 500 10
               2     Vijay     3500 650 20
               3     Saravanan 4600 780 30
               4     Sethu     5700 890 20
               5     Raja      6100 950 10
               6     Surendar 7300 560 30
               7     Vivek     6500 430 20
               8     Raman     5400 230 10
               9     Jain      3300 460 10
               10    Ajay      7800 660 20
7. Select * from Emp where basic =(select Max (basic) from emp)
13.   Select DeptName from Dept Where DeptNo Not In (Select DeptNo from
      Emp)
Additional Questions
                                    Ms-office
Ms-word
  13. Create a document about company employee details and import an employee
     table from the MS-Access. Employee number must be in sorted for and who have
     get more than Rupees 2000 salary.
                                                 41
  14. Create a document which contains two frames, left side of the document contains
        contents of the frame, if we click the content the corresponding details in the
        frame 2 will be shown.
  15. Create a word application to print 8 addresses
  16. Paste a bmp in a word document and add handouts about it.
  17. Create a document which uses wordart
  18. Create a document and add a header and a footer to it
  19. Create a word document and perform spell check and grammar check
  20. Create a word document that uses bulleted list
  21. Create two documents and merge them
  22. Create a document that calls dynamic help
MS-Excel
  1. Create a excel sheet for student mark list, Find the total, average using relative
        addressing using a conditional format differentiate field who have lesser than 40
        marks.
  2. Create a excel sheet with following format
  3. Create a sales report for your company and show that growth of your company by
        Chart.
                                          42
  4. Create a excel sheet about employee details import an employee table from the
      oracle.
  5. Create an excel sheet which shows the list of employees in an organization
  6. Create an excel sheet to print the pay slip of an employee
  7. Create an excel sheet that contains the course details
  8. Create an excel sheet which contains pie chart that shows the monthly expense of
      an organization
  9. Create an excel sheet that contains students mark list. Sort it
              1. Ascending order of names.
              2. Ascending order of total marks.
              3. Descending order of grades.
  10. Create a custom view for your excel sheet to navigate excel sheet.
  11. Create a form to enter supplier details in an excel sheet
  12. Create an excel sheet and illustrate maximum, minimum, sum, count, average and
      square functions
  13. Create excel sheet for student marklist. Calculate the class average and individual
      rank
  14. Create an Excel sheet for student it contains Roll No, Name, Course, Date of
      Joining, Sex columns insert 5 student details through Form (Data  Form).
  15. Create a excel sheet for Employee Detail Maintenance which has empno, name,
      Date of birth, Department, Salary. Name must be 25 characters long, Date-Of-
      Birth must be valid date. (Use Data Validation).
  16. Create an excel sheet with a custom header and footer
  17. Create an excel sheet that contains formatted headings
  18. Create a macro in excel that to increase the font size of the cell
  19. Create an excel sheet that uses paste special and paste link options
  20. Create an excel sheet that stores the addresses
Ms-Power Point
  1. Create a Slide Show using Design template and with different animation effects
     about your XYZ Company.
  2. Create birthday greeting for your friend.
  3. Create a Slide Show for your Course content in semester-wise .You must use
     different effects and transition to your slide.
  4. Create a slide show with four slides. Each slide should have slide number,
     heading. USE slide master for formatting
     6. Create a slide show that illustrates the various shapes with examples
     7. Create a slide show about your company. Apply transitions
     8. Create a slide show using different design templates about your XYZ Company.0
     9. Create a Slide Show to explain traffic signals. Use necessary clip arts.
     10. Create a slide show that contains slides with charts and clip arts
     11. Create a slide show and set auto timings
     12. Create a slide show with organization chart
     13. Create a slide show with two column text
     14. Create a slide show copying the content from word document
     15. Create a slide show and save it as an exe file
     Ms-Access
1.a. Create dept table with following structure and insert 5 records
        Deptno          number
        Dname           text
     b. Design a query to display all the records of dept table
2.Create emp table with following structure
        empno           number
        ename           text
        deptno          number
        basic           number
        doj             date     Insert 5 records into the table using form
3.Display the employee working in the given department. Accept department from user
4.      Design a report to retrieve employee details department wise
5.      a. Display the employee receiving maximum salary
        b. Create a report displaying the employee database sorted by ascending order of
           doj
6.      a. Create course table and insert 5 records
                                            Course
                                    Courseid     Number
                                    CourseName Text
7.    Create student database and insert five records using form. Declare constraints
                            Stud
                            RollNo        Number
                            Name          Text
                            Courseid      Number
                            Sex           Text
                            DateOfBirth   Date
                            Address       Text
                                           Visual Basic
1.   Create a Form layout as follows:
       When pressed ‘1’, Sunday should be messaged. Similarly, for 2: Monday, 3: Tuesday, 4:
Wednesday, 5: Thursday, 6: Friday and finally for 7: Saturday.
Solution:
                                                  Property               Setting
                    Object
             Textbox                     Name                                      T1
             CommandButton               Name                                      D1
2.   Create a form that should display the text “Welcome to visual basic lab” when clicked on the Display
     button and when clicked on the clear button should clear the text in the text box and when clicked on
     the exit button should exit the form.
                                                47
Solution:
Solution:
         Create form layout add three Text Box and Four Command Button as Specified
         The Property Table:
                                                         Caption                    ADD
            CommandButton2                                Name                       C2
                                                         Caption                    SUB
            CommandButton3                                Name                       C3
                                                         Caption                    MUL
            CommandButton4                                Name                       C4
                                                         Caption                     DIV
            CommandButton5                                Name                       C5
                                                         Caption                    MOD
                                                       49
4. Write a program to write the contents of the text box to a text file.
Solution:
       When the user types the name and select Male and presses Display, “Mr.” Should
be added before the name and displayed in the Message box. If selected Female, “Ms.”
Should be added.
Solution:
6.   Write a program to make the text in the text box has bold or italic which ever option is chosen from the
     form.
Solution:
In the first check box’s click event write the following code.
                                                    52
In the second check box’s click event write the following code.
7.   Animate the word “Moving Label”, like a Marquee, that is, moving from left to right and then from
     right to left. When Start button is clicked, it should start moving and when Stop button is clicked it
     should stop moving.
Solution:
Dim f As Integer
8.   Write a function to validate the time which is entered in the form. The format of the time is “h:mm
     am/pm”.
Solution:
Solution:
         Place OLE control in the form the Property for OLE is automatically appear
         If not right click OLE and Insert Object.
         In the Create New Option write:
                Select MicroSoft Word Document and , Display as Icon Option
                 And press OK
            If we click the OLE in run time Word application is opened
10. Write a function to convert a string from lowercase to uppercase. The string is “WELCOME TO THE
    VISUAL BASIC LAB”
Solution:
Solution:
Code is:
Solution:
         Place a List Box and Name it as L1
         Place a Text Box and Name it as T1
         Place Two Command Button andname it as c1 & c2
                Caption for CommandButton1 is ADD
                 Caption for CommandButton1 is REMOVE
Solution:
15. Create a Database having the fields: Name and Number. Link it to a Textbox by using DAO control
    using Form layout
Solution:
        Place Two Text Boxes and a Data control
        The Property Table:
Solution:
        Dim dtnewdate as date
        Dim dtdate as date
        Dtdate = #7/7/2002#
        Msgbox dtdate
        Dtnewdate = dtdate+5
                                                     58
17. Create Form Layout with the buttons “LINE” and “CIRCLE”. When the LINE button is clicked a line
    should be added to the Picture box randomly. Likewise a circle should be added when clicking the
    CIRCLE button.
Solution:
         Place a Picture Box and name it as P1,
         CommandButton1 name: Line and
         CommandButton2 name: Circle
         Then type the following Code:
         Private Sub Circle_Click()
         P1.Circle (Rnd * 1500, Rnd * 1500), 200
         End Sub
         Private Sub Line_Click()
         P1.Line (Rnd * 500, Rnd * 500)-(Rnd * 2200, Rnd * 2200)
         End Sub
18. Assume there is a user defined data type that is defined as follows:
                  Type Employeenew
                  Name as string * 40
                  Age as integer
                  End type
                  Then what does the following code do?
                  Dim filenum as integer
                  Dim employee as employeenew
                  Filenum = freefile
                  Open “Employee.dat” for random as filename len=len(employee)
                  Employee.name = “vijay”
                  Employee.age = 27
                  Put filenum, 5, employee
                                                 59
Solution:
        The code stores the name “vijay” and his age 27 in record number 5 of the file
        employee.dat.
        “declare variables”
        Dim filenum as integer
        Dim employee as employeenew
19. Create a Form layout with a Jumping Ball that moves from Top to Bottom using Timer control and
    Shape Control (Circle).
Solution:
        Select Case f
        Case 1
        Shape1.Top = Shape1.Top - 500
        Case 2
        Shape1.Top = Shape1.Top + 500
        End Select
        End Sub
20. What does the following code do?
                Filenum = freefile
                Open “sample.dat” for binary as filenum
                Mystring = string(30, “ “)
                Get #filenum, 85, mystring
                Msgbox “mystring=+mystring
                Close filenum
Solution:
                The code reads 30 bytes from the file sample.dat   starting at byte
                location 85. the code then displays these 30 bytes.
        ‘Get a free file number
Filenum = freefile
         ‘Displays mystring
Msgbox “mystring=+mystring
Close filenum
21. Create a Form Layout with a Drive, Directory and a File list and a Textbox. The Form should perform
    the following tasks:
             a. When a Drive Letter in the Drive list Box is clicked, the corresponding
                Directories should be displayed in Directory List Box.
             b. When a Directory in the Directory list Box is clicked, the corresponding
                Files should be displayed in File List Box.
             c. When a File in the File list Box is clicked, the corresponding Filename
                should be displayed in Text Box.
Solution:
        Create a Form Layout, place drive list box, directory list box, file list box and a
text box. Type the following code in the corresponding events. Then it will produce the
desired output.
        Private Sub Dir1_Change()
        File1.Path = Dir1.Path
        End Sub
        Private Sub Drive1_Change()
        Dir1.Path = Drive1.Drive
        End Sub
        Private Sub File1_Click()
        T1.Text = File1.FileName
        End Sub
                                                      62
22. Write a program that displays the contents of the file c:\autoexec.bat in a text box.
Solution:
         The name of th e property of the text box should be set to txtsampletext and the
         multilane property of the text box should be set to true. The code is placed in the
         forn load() procedure of the form.
         Private sub form_load ()
         ‘get a free file number
         filenum = freefile
          ‘open the file c:\autoexec.bat for input
         open c:\autoexec.bat” for input as filenum
Solution:
Step 1
         Add new Project – Select Active X Control , Place Textbox and Timer control
           Set Timer interval property as 1
              In the timer event write the code as
                Dim I as integer
                 Private Sub Timer1_Timer()
               I=I+1
              Text1.text = I
            If I = 1000 then
                I=1
          End if
          End sub
                                                     63
Step 2
         Save it with the extension .ocx and name Project1
         To test this Active X
             In new Project
                  In Project MenuComponentsCheck Project1
         Control will be added in the toolbar, the Active X Control can be used.
24. What is the purpose of the first line in the following code
         Is to set an error trap so that if a runtime error occurs on the following lines the
         error will be trapped.
25. Create the Form layout as follows:
                  When Scroll bar changes, the color of Label Box should automatically
                  Change (Use RGB Function).
Solution:
         Create a Form layout placing Six Labels and Three scroll bars
         Set Label1 caption as Red
         Set Label2 caption as Green
         Set Label3 caption as Blue
                                                   64
        When the user clicks on the student option the corresponding student screen must
        be displayed. When the item option is clicked then the item screen must be
        displayed. When the user clicks on the exit button it should exit the application.
Solution:
        Private Sub exit_Click()
                End
        End Sub
        Private Sub item_Click()
                frmItem.Show
        End Sub
        Private Sub student_Click()
                frmStudent.Show
        End Sub
                                          65
We can create the menu using the menu editor as shown below
27. We can Create a Form that has Menu Controls similar to Notepad.
Solution:
       Right click in the Form, select Menu Editor, Menu Editor dialog will appear.
Give the Caption and Name and use  and  Buttons to specify the level of Menu, we
can get the specified menu as Notepad.
Exercise: -
   1. Display the current date and time in a Form.
   2. Write an event procedure to find the sum of numbers from 1 to the selected value.
      Use a horizontal scroll bar to set the maximum value.
4. Using MouseDown event, write a Visual Basic application to identify whether the
   right button or the left button was clicked .
5. Railways needs to validate the date of travel for the reservation facility .The
   booking should be either on that current day or for the next 15 days . How could
   we implement this in Visual Basic?
6. Load a BMP file in the OLE control and modify it at run time to illustrate that
   Visual Basic program can be used as a front-end application
7. Using the FlexGrid control write a program that calculates the Addition,
   Subtraction, Multiplication, and Division of numbers ranging from 1 to 12.
8. Create a form, which has a DBGrid control for displaying the train details.
   Include five label controls, five text boxes, four command buttons, a Data
   control and a DBGrid control. Whenever a passenger requests for a ticket and the
   corresponding train’s name is entered, the details of that particular train have to
   be displayed in the grid control. The passenger details should automatically get
   updated in the passenger_detail table.
9. Using Data Environment, create to command object with all the fields from
   student table. Use this in a form to display the details. Form should have provision
   to navigate sequentially both forward and backward.
10. Develop an ActiveX DLL which calculates the train fare for the trains given
    below.
   a.   Cheran Express
   b.   Bangalore Mail
   c.   Charminar Express
   d.   Brindavan Express
   e.   Grand Trunk Express