List of Experiments: Lab Manual
List of Experiments: Lab Manual
LIST OF EXPERIMENTS
(B)PROGRAM TO CALCULATE
AREA OF TRIANGL
7 (A)PROGRAM TO CALCULATE
AREA OF A ROOM.
LAB MANUAL
EXPERIMENT NO. 1
Any instruction given to the computer to perform a specific task is called command. The DOS
has several commands, each for a particular task and these are stored in DOS directory on the
Disk. The Command are of two types:
1. Internal Command:
These are in built commands of MS-DOS. These are stored in file COMMAND.COM.
These Command reside in the memory as long as the machine is at the system
prompt(C:\>). To use these commands no external or internal file is required.
2. External Command
These are separate program (.com) files that reside in DOS directory and when executed
behave like commands. It has predefined syntax.
Date Command: It shows the current date and enables you to reset it. Type the
following command for it as press Enter Key.
C:\>Date
Time Command: By this command you can show the current time or can reset it.
C:\>TIME
Dir Command: This command is used to list all or specifies files of any directory
on a specified disk.
C:\>DIR
C:\>CLS
CD \ Command: It logs onto the DIR, which is one level above the currently
logged Dir.
C :\> Documents and settings\ ANY NAME>CD\
Type Command: This command is used to display the contents of the specified
file.
TYPE <File Name>
Copy Command: This Command copies one or more files from source disk/drive
to the specified disk/drive.
Copy <Source File> <Destination File>
DEL or ERASE Command: Both command use to delete the file of a given file
name.
DEL <File Name>
REN Command: This command is used to change the name of any file.
REN <OLD File Name> <NEW File Name>
PATH: Sets a sequential search path for the executable files, if the same are not
available in the current directory.
EXPERIMENT NO. 2
INTRODUCTION: - Word Processor is a Software package that enables you to create, edit, print
and save documents for future retrieval and reference. Creating a document involves typing by
using a keyboard and saving it. Editing a document involves correcting the spelling mistakes, if
any, deleting or moving words sentences or paragraphs.
(a) Advantages of Word Processing:- One of the main advantages of a word processor over a
conventional typewriter is that a word processor enables you to make changes to a document
without retyping the entire document.
(b) Features of Word Processing:- Most Word Processor available today allows more than just
creating and editing documents. They have wide range of other tools and functions, which are
used in formatting the documents. The following are the main features of a Word Processor
i. Text is typing into the computer, which allows alterations to be made easily.
ii. Words and sentences can be inserted, amended or deleted.
iii. Paragraphs or text can be copied /moved throughout the document.
iv. Margins and page length can be adjusted as desired.
v. Spelling can be checked and modified through the spell check facility.
vi. Multiple document/files can be merged.
vii. Multiple copies of letters can be generated with different addresses through the mail-
merge facility.
(c) Some Common Word Processing Packages:- The followings are examples of some popular
word processor available
Soft word
WordStar
Word perfect
Microsoft word
i. Using word you can create the document and edit them later, as and when required, by
adding more text, modifying the existing text, deleting/moving some part of it.
ii. Changing the size of the margins can reformat complete document or part of text.
iii. Font size and type of fonts can also be changed. Page numbers and Header and Footer
can be included.
iii. Spelling can be checked and correction can be made automatically in the entire
document. Word count and other statistics can be generated.
v. Text can be formatted in columnar style as we see in the newspaper. Text boxes can be
made.
vii. Word also allows the user to mix the graphical pictures with the text. Graphical pictures
can either be created in word itself or can be imported from outside like from Clip Art
Gallery.
ix. Word also has the facility of macros. Macros can be either attached to some
function/special keys or to a tool bar or to a menu.
1. Take the mouse pointer to START button on the task bar. Click the left mouse button. The
monitor will show like as follows:
Fig. 9.1
2. Move the pointer to programs. You will notice another menu coming up to the right.
3. In that menu identify where Microsoft word is placed. Move the cursor horizontally to
come out of programs.
4. Move into the rectangular area meant for Microsoft word. Click the left mouse button
there. The computer will start MS-WORD. You will find the screen as follows.
a. Title Bar :- The title bar displays the name of the currently active word document. Like
other WINDOWS applications, it can be used to alter the size and location of the word
window.
b. Tool Bars :- Word has a number of tool bars that help you perform task faster and with
great ease. Two of the most commonly tool bars are the formatting tool bar and the
standard tool bar. These two toolbars are displayed just below the title bar. At any point of
time any tool bar can be made ON or OFF through the tool bar option of View Menu.
(c) Ruler Bar:- The Ruler Bar allows you to format the vertical alignment of text in a document.
(d) Status Bar:- The Status Bar displays information about the currently active document. This
includes the page number that you are working, the column and line number of the cursor
position and so on.
(e) Scroll Bar:- The Scroll Bar helps you scroll the content or body of document. You can do so
by moving the elevator button along the scroll bar, or by click in on the buttons with the arrow
marked on them to move up and down and left and right of a page.
(f) Workspace :- The Workspace is the area in the document window was you enter/type the text
of your document.
(g) Main Menu:- The Word main menu is displayed at the top of the screen as shown in the Fig.
9.1. The main menu further displays a sub menu. Some of the options are highlighted options
and some of them appear as faded options. At any time, only highlighted options can be
executed, faded options are not applicable. Infect if the option is faded you will not be able to
choose it. You may not that any option faded under present situation may become highlighted
under different situations.
3. MAIN MENU OPTIONS:- The overall functions of all the items of main menu are
explained below.
(a) File:- You can perform file management operations by using these options such as opening,
closing, saving, printing, exiting etc. It displays the following sub menu.
(b) Edit:- Using this option you can perform editing functions such as cut, copy, paste, find and
replace etc. It displays the following sub menu.
(c) View:- Word document can be of many pages. The different pages may have different modes.
Each mode has its limitations. For example in normal mode the graphical picture cannot be
displayed. They can only be displayed in page layout mode. Using the option "View" you can
switch over from one mode to other. It displays the following Sub menu.
(d) Insert:- Using this menu, you can insert various objects such as page numbers, footnotes,
picture frames etc. in your document. It displays the following Sub menu.
(e) Format:- Using this menu, you can perform various type of formatting operations, such as
fonts can be changed, borders can be framed etc. It displays the following Sub menu.
(f) Tools:- Using this menu, you can have access to various utilities/tools of Word, such as spell
check, macros, mail merge etc. It displays the following Sub menu.
(g) Table:- This menu deals with tables. Using this menu you can perform various types of
operations on the table. It displays the following Sub menu.
(h) Window:- This menu allows you to work with two documents simultaneously. This would
require two windows to be opened so that each one can hold one document. Using this menu,
you can switch over from one window to another. It displays the following Sub menu
(i) Help:- Using this menu, you can get on-line help for any function.
4. CONCLUSION:- At the end of this lesson you have learnt the important features of Ms-
Word. We started with procedure to invoke Ms-Word. We identified toolbars available in
the main menu of Ms-Word are discussed.
EXPERIMENT NO. 3
Title Bar
The Title bar is located at the very top of the screen. On the Title bar, Microsoft Excel displays
the name of the workbook you are currently using. At the top of your screen, you should see
Microsoft Excel - Book1
Menu Bar
The Menu bar is directly below the Title bar. Point with your mouse to a menu option and click
the left mouse button. A drop-down menu will appear. To select an option, highlight the item on
the drop-down menu and press Enter. An ellipse after a menu item signifies additional options.
Tool Bar
Toolbars provide shortcuts to menu commands. Toolbars are located just below the Menu bar.
Worksheets
Microsoft Excel consists of worksheets. Each worksheet contains columns and rows. The
columns are lettered A to IV; the rows are numbered 1 to 65536. The combination of column and
row coordinates make up a cell address. For example, the cell located in the upper left corner of
the worksheet is cell A1, meaning column A, row 1. Cell E10 is located under column E on row
10. You enter your data into the cells on the worksheet.
Formula Bar
If the Formula bar displays the Cell address on the left Cell Entries display on the right side of
the Formula bar.
Status Bar
The word Ready tells you that Excel is in the Ready mode and awaiting your next command.
Other indicators appear on the Status bar in the lower right corner of the screen. Here are some
examples:
The letters NUM on the Status bar in the lower right corner of the screen indicate that the
numeric keypad is on. The Num Lock key is a toggle key. Pressing it turns the numeric keypad
on and off. You can use the numeric keypad to enter numbers as if you were using a calculator.
Arrow Keys
Use the down arrow key to move downward on the screen one cell at a time.
Up Arrow Key
Use the Up Arrow key to move upward on the screen one cell at a time.
Use the right and left arrow keys to move right or left one cell at a time.
Page Up and Page Down keys move the cursor up and down one page at a time.
End Key
End key, used in conjunction with the arrow keys, causes the cursor to move to the far end of the
spreadsheet in the direction of the arrow.
Home Key
Home key, used in conjunction with the End key, moves you to to the beginning of the data area
if you have entered data or cell A1.
Scroll Lock
Scroll Lock moves the window, but not the cell pointer.
Selecting Cells
If you wish to perform a function on a group of cells, you must first select those cells by
highlighting them. To highlight cells A1 to E1.Place the cursor in cell A1.Press the F8 key. This
anchors the cursor. Note that EXT appears on the Status bar in the lower right corner of the
screen. You are in the Extend mode. Click in cell E7. Cells A1 to E7 should now be highlighted.
Press Esc and click anywhere on the worksheet to clear the highlighting.
Click on File, which is located on the Menu bar. Press the down arrow key until Exit is
highlighted. Press Enter. Click on No, if you are prompted, "Do you want to save the changes
you made to Book1?"
EXPERIMENT NO. 4
INTRODUCTION:- To launch Microsoft PowerPoint, click Start -> (All) Programs ->
Microsoft Office -> Microsoft Office PowerPoint 2003
The Title Bar:- As a regular Windows application, Microsoft PowerPoint shares some
characteristics that are common to other programs. The top section of the interface is made of a
wide bar called the title bar:
The left section of the title bar displays a small picture known as the system icon. This icon is
used to identify the application. The icon holds a list of actions you can perform to close,
minimize, maximize, move or restore the application. To perform any of these actions, you
would click the system icon. This would display its list:
This list can also be referred to as the system menu. To use one of its items, you can click it.
The main area of a title bar is a long bar actually referred to as the title bar. This section is also
used to perform the same operations available on the system menu. There are other operations
you can perform different than the system menu depending on the way you click the main area
of the title bar.
The System Buttons:- The right section of the title bar displays three small squares referred to as
the system buttons. They are used to minimize, maximize, restore or close Microsoft PowerPoint.
These items are
Button Role
Minimizes the window
Maximizes the window
Restores the window
Closes the window
The Main Menu:- Under the title bar, there is the main menu and sometimes called the Menu
Bar. To use a menu item, you click one of its words and the menu expands. If an item is
missing from the main menu, you can customize it.
There are four main types of menus you will encounter:
When clicked, the behavior of a menu that stands alone depends on the
actions prior to clicking it. Under the File menu, an example is Exit
On the main menu (and any menu), there is one letter underlined on each word. Examples are
F in File, E in Edit, V in View, etc. The underlined letter is called an access key. The access
key allows you to access the same menu item using the keyboard. In order to use an access
key, the menu should have focus first. The menu is given focus by pressing either the Alt or the
F10 keys. When the menu has focus and you want to dismiss it, you can press Esc.
On some menu items, there is a key or a combination of keys we call a shortcut. This key or this
combination allows you to perform the same action on that menu using the keyboard. If the shortcut
is made of one key only, you can just press it. If the shortcut is made of two keys, press and hold the
first one, while you are holding the first, press the second key once and release the first key. Some
shortcuts are a combination of three keys.
The Toolbars:- Under the menu bar, there is another bar made of various buttons. This is called
a toolbar. There are various toolbars used in Microsoft PowerPoint. Each toolbar has a proper
name and we will learn how to recognize them.
At times, there will be many toolbars that come and go while you are using Microsoft
PowerPoint. For this reason, we will refer to each toolbar by its name. To know the name of a
toolbar, you can right-click any word on the menu bar or any button on the toolbar. If you have
only one toolbar on your screen, its name will have a check box. The other name(s) on the
context menu is (are) the one (those) you can add to the screen if you wish:
#include<iostream. h>
#include<conio.h>
void main()
clrscr();
cout<<”Hello World”;
getch();
#include<iostream. h>
#include<conio.h>
void main()
clrscr();
float f;
cin>>a;
cin>> b;
c = (a+b);
d = (a-b);
e = (a*b);
f = (a/b);
cout<<”Diff. is = ”<< d;
cout<<”Multi. is = ”<< e;
cout<<”Div. is = ”<< f;
getch();
#include<iostream.h>
#include<conio.h>
void main()
clrscr();
int r;
float area ;
cin>>r ;
getch () ;
#include<iostream. h>
#include<conio.h>
void main()
clrscr();
int b,h:
float area ;
cin>>b;
cin>> h;
area= ((1/2)*b*h);
getch();
#include<iostream.h>
#include<conio.h>
void main()
int l,h,b,v;
cin>>l>>h>>b;
v = (l* h * b);
getch ();
#include<iostream.h>
#include<conio.h>
void main()
int a,b,c;
cin>>a;
cin >>b;
c =a;
a =b;
b =c;
cout<<"a= "<<a ;
getch() ;
#include<iostream.h>
#include<conio.h>
void main()
clrscr();
int i;
cin>>I;
if(i%2 = = 0)
cout<<”number is even”;
else
cout<<”number is odd”;
getch();
#include<iostream.h>
#include<conio.h>
void main()
clrscr();
int n, i = 1;
cin>>n;
long sum = 0;
while(i<=n)
sum += i++;
getch();
10. What are class identifiers explain it 24What are Constructors & Destructors?
using practical example? 25 Explain all the layers of ISO-OSI
11.what are classes and objects n OOPS? model?
15 What s polymorphism and what are 29 Explain the function of data link layer
its types? in brief?
40. Define super key, foreign key, and 54. Applications of OPERATING
alternate key. SYSTEM?
41. What is Data Definition Language & 55. Why we use getch ()?
Manipulation Languages?
57. What is the function of ‘iostream’ &
42. Define computer networking. ‘conio’?
44. functions of each layer of OSI model. 59. Define I/O operations?