You are on page 1of 83

Student Name->

PROGRAMMING IN “C”
&
OFFICE AUTOMATION
DCA – I (Sem.)

SESSION -2022-23

SUBMITED TO SUBMITED BY
Mr. R. Chourasia

B C S GOVT. P. G. COLLEGE DHAMTARI Page 1


Student Name->

INDEX
S NO PRACTICAL NAME REMARK
1 WAP FOR FIND GREATER OF ANY THREE NUMBER
2 WAP TO GENERATE GROSS SALARY
3 CHECK A NUMBER IS PRIME OR NOT
4 WAP FOR FINDING ROOTS OF QUARDRATIC EQUATION ( ax2 + bx + c = 0)
5 WAP FOR SWAPPING ANY TWO NUMBER
6 WAP TO PERFORM ARITHMETIC OPERATOR USING SWITCH CASE
7 CALCULATE FACTORIAL OF ANY NUMBER
8 WAP CHECK A NUMBER IS MAGIC NUMBER OR NOT
9 WAP FOR ADDITION OF ARRAY ELEMENTS
10 WAP FOR BUBBLE SORTING
11 WAP FOR LINEAR SEARCH
12 WAP FOR BINARY SEARCH
13 COUNTING VOWELS SPACE & CONSONANT TO A STRING
14 WAP TO CHECK STRING ARE EQUAL OR NOT
15 WAP FOR ADDITION OF TWO STRING
16 WAP FOR TWO MATRIX ADDITION
17 WAP FOR TWO MATRIX MULTIPLICATION
18 WAP TO FIND FACTORIAL OF ANY NUMBER BY USING POINTER
19 WAP TO PRINT OUT FEBONACI SERIES BY USING RECURSIVE FUNCTION
20 WAP TO IMPLIMENT POINTER WITH ARRAY

B C S GOVT. P. G. COLLEGE DHAMTARI Page 2


Student Name->

OFFICE AUTOMATION
S.NO. PARTICULARS SIGN

MS-WORD
1. Type the text as shown below and perform the tasks as directed:-

2. Type and format the text as shown below if any spelling or grammar mistake occurs correct
it using spelling and grammar facility.

3. PARAGRAPH & FORMATING

Type text and format the text as shown below:-


4. Bullets and Numbering

Write text and format as shown below:-


5. Create a following table. GIVEN BELOW

MS-EXCEL
1. Create the following worksheet and save the worksheet as wages.xls.

2. Create the following worksheet and save the worksheet as wages.xls.

3. Create a worksheet as follows: -

Pace computer(atc. cedt) govt. Of India

Payroll for employee (permanent)

MS-POWERPOINT
1. Write an animated presentation about any three courses available in college.

2. Write an animated presentation about communication of a bad news.

EXCELL
1. Create the following worksheet and save the worksheet as wages.xls.

2. Create the following worksheet.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 3


Student Name->
3. Create a worksheet as follows.

4. Create the worksheet as follows.

5. Create Macro to make selected cell Bold Italic, Outside Bordered and Centre.

MS ACCESS

1 Create a data base named collage in which defined for table:-


Student information=std-id std-enroll std-nm std-dob std-class std-con

1- Fee structure=std-id std-clg.fee std-pyd.fee std-balance std-receipt.no:-


2- Library information=std-id book-id book-name issue-date return-date book-fine:-
3- Exam department=std-roll.no std-enroll std-class std-total marks std-result:-

2 LIST OUT ALL RECORDS OFF STUDENT & ISSUE BOOK:-

3 LIST OUT RECORDS OF STUDENT WHO’S BALANCE IS MORE THEN $5000:-

TALLY
1 HOW TO CREATE A COMPANY IN TALLY.

2 HOW TO CREATE PURCHASE VOUCHER IN TALLY.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 4


Student Name->

ASSIGNMENT - 1

/* WAP FOR FINR GREATER OF ANY THREE NUMBER */


#include<conio.h>

#include<stdio.h>

void main()

int a,b,c;

clrscr();

printf("\n\t enter any three number\n\t");

scanf("%d%d%d",&a,&b,&c);

if(a>b)

if(a>c)

printf("\n\t %d is greater number",a);

else

printf("\n\t %d is greater number",c);

else

if(b>c)
B C S GOVT. P. G. COLLEGE DHAMTARI Page 5
Student Name->

printf("\n\t %d is greater number",b);

else

printf("\n\t %d is greater number",c);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 6


Student Name->

ASSIGNMENT - 2

/* WAP TO GENERATE GROSS SALARY */

#include<stdio.h>
#include<conio.h>
void main()
{
float bp,hr,da,gp;
clrscr();
textcolor(220);
printf("\nEnter the value of basic pay\n\n");
scanf("%f",&bp);
if(bp<=4000)
{
da=0.4*bp;
hr=0.1*bp;
}

if(bp>4000)
{
da=0.5*bp;
hr=0.2*bp;
}
gp=bp+da+hr;
printf("The value of basic pay = %f",bp);
printf("The value of DA = %f",da);
printf("\n\nThe value of HRA = %f",hr);
printf("\n\nThe value of gross pay = %f",gp);
getch();
}

B C S GOVT. P. G. COLLEGE DHAMTARI Page 7


Student Name->

ASSIGNMENT - 3

/* CHECK A NUMBER IS PRIME OR NOT */

#include<conio.h>
#include<stdio.h>
void main()
{
int n,i,d=0;
clrscr();
printf("\n\t enter any number \n\t");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
if(n%i==0)
d++;
}

if(d==2)
printf("\n\n\t %d is prime number",n);
else
printf("\n\n\t %d is not prime number",n);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 8


Student Name->

ASSIGNMENT - 4
/* WAP to find out the roots of quadratic equation ax2+bx+c */
#include<conio.h>

#include<stdio.h>

#include<math.h>

void main()

float a,b,c,d,x1,x2;

clrscr();

printf("Enter the value a,b & c:\n\n");

scanf("%f%f%f",&a,&b,&c);

d=b*b-4*a*c;

if(d==0)

x1=-b/(2*a);

x2=x1;

printf("\n\nBoth roots are equals:->\n\n");

printf("X1 = %5.1f <- -> X2 = %5.1f",x1,x2);

else

B C S GOVT. P. G. COLLEGE DHAMTARI Page 9


Student Name->

if(d>0)

x1=(-b/(2*a))+sqrt(d)/(2*a);

x2=(-b/(2*a))-sqrt(d)/(2*a);

printf("\n\nBoth roots are differents:->\n\n");

printf("X1 = %5.1f <- -> X2 = %5.1f",x1,x2);

else

printf("\n\nBoth roots are imaginary:->\n\n");

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 10


Student Name->

ASSIGNMENT - 5
/* WAP FOR SWAPPING ANY TWO NUMBER */
#include<conio.h>

#include<stdio.h>

void main()

int a,b,t;

clrscr();

printf("\n\t enter any two number\n\t");

scanf("%d%d",&a,&b);

printf("\n\t BEFORE SWAPPING->\n\t a = %d b = %d",a,b);

t=a;

a=b;

b=t;

printf("\n\t AFTER SWAPPING->\n\t a = %d b = %d",a,b);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 11


Student Name->

ASSIGNMENT - 6
/* WAP TO PERFORM ARITHMETIC OPERATOR USING SWITCH CASE */
include<stdio.h>

#include<conio.h>

void main()

int a,b;

char n;

clrscr();

printf("\nEnter your choice(A. add S. sub M. multi D. div):\n\n ");

scanf("%c",&n);

printf("\n\nEnter any two value\n\n");

scanf("%d%d",&a,&b);

switch(n)

case 'A':

printf("\n\nThe addition is = %d\n\n",a+b);

break;

B C S GOVT. P. G. COLLEGE DHAMTARI Page 12


Student Name->

case 'S':

printf("\n\nThe Substraction is = %d\n\n",a-b);

break;

case 'M':

printf("\n\nThe Multilpication is = %d\n\n",a*b);

break;

case 'D':

printf("\n\nThe division is = %f\n\n",(float)a/b);

break;

default :

printf("\n\nSahi number input karo\n\n");

break;

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 13


Student Name->

ASSIGNMENT - 7
/* CALCULATE FACTORIAL OF ANY NUMBER */

#include<conio.h>

#include<stdio.h>

void main()
{
int n,i,d=1;

clrscr();

printf("\n\t enter any number \n\t");


scanf("%d",&n);

for(i=1;i<=n;i++)
{
d=d*i;
}

printf("\t factorial of %d = %d",n,d);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 14


Student Name->

ASSIGNMENT - 8
/* CHECK A NUMBER IS MAGIC NUMBER OR NOT */

#include<conio.h>
#include<stdio.h>
void main()
{
int n,a,s=0,n1;
clrscr();
printf("\n\t enter any number \n\t");
scanf("%d",&n);
n1=n;

while(n!=0)
{
a=n%10;
s=s+(a*a*a);
n=n/10;
}
if(s==n1)
printf("\n\n\t %d is magic number",n1);
else
printf("\n\n\t %d is not magic number",n1);

getch();
}

B C S GOVT. P. G. COLLEGE DHAMTARI Page 15


Student Name->

ASSIGNMENT - 9
/* write a program for additon of array elements */
#include<stdio.h>

#include<conio.h>

void main()

{ int a[15],i,s=0,n;

printf("Enter the size of array under 15\n");

scanf("%d",&n);

printf("\n\t enter %d number\n\t");

for(i=0;i<n;i++)

scanf("%d",&a[i]);

printf("\n\t the array elements are\n\t");

for(i=0;i<n;i++)

printf("%3d",a[i]);

s=s+a[i];

printf("\n\t sum = %d",s);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 16


Student Name->

ASSIGNMENT - 10
/* BUBBLE SORTING */

#include<stdio.h>
#include<conio.h>
void main()
{
int a[20],j,n,i,t;
clrscr();

printf("Enter the size of list:\n");


scanf("%d",&n);

printf("\nEnter %d no's :\n",n);


for(i=0;i<n;i++)
scanf("%d",&a[i]);

for(i=0;i<n;i++)
{
for(j=0;j<n-i-1;j++)
{
if(a[j]>a[j+1])
{
t=a[j];
a[j]=a[j+1];
a[j+1]=t;
}
}
}

printf("\n\nThe sorted list are\n\n :");


for(i=0;i<n;i++)
printf("%3d",a[i]);

getch();
}

B C S GOVT. P. G. COLLEGE DHAMTARI Page 17


Student Name->

ASSIGNMENT -11
/* WAP FOR LINEAR SEARCH */
#include<stdio.h>

#include<conio.h>

void main()

int a[20],n,i,data;

clrscr();

printf("Enter the size of list:\n");

scanf("%d",&n);

printf("\nEnter %d no's :\n",n);

for(i=0;i<n;i++)

scanf("%d",&a[i]);

printf("\nthe list is :\n\n");

for(i=0;i<n;i++)

printf("\t%d",a[i]);

printf("\n\nEnter the element witch search into list:\n\n");

scanf("%d",&data);

B C S GOVT. P. G. COLLEGE DHAMTARI Page 18


Student Name->

for(i=0;i<n;i++)

if(a[i]==data)

printf("\n\t successful search");

printf("\n\tThe data %d location is a[%d]",a[i],i);

break;

if(i==n)

printf("\n\t unsuccessful search");

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 19


Student Name->

ASSIGNMENT - 12
/* BINARY SEARCH */

#include<stdio.h>
#include<conio.h>
void main()
{
int a[10],loc,n,beg=0,end,i,mid,data,j,k;
clrscr();

printf("Enter the size of list:\n");


scanf("%d",&n);

printf("\nEnter any no's :\n");


for(i=0;i<n;i++)
scanf("%d",&a[i]);

for(i=0;i<n;i++) {
for(j=i+1;j<n;j++)
{
if(a[i]>a[j])
{
k=a[j];
a[j]=a[i];
a[i]=k;
}
}
}
printf("\n\n\nThe shorted list are:\n\n");
for(i=0;i<n;i++)
printf("%3d",a[i]);
end=n-1;
mid=(beg+end)/2;
printf("\n\n\n if u want search again type's'\n");
if(getch()=='s')

B C S GOVT. P. G. COLLEGE DHAMTARI Page 20


Student Name->

{
printf("\n\n\nEnter the element which search into list:\n");
scanf("%d",&data);
while(beg<=end&&a[mid]!=data)
{
if(data<a[mid])
end=mid-1;
else
beg=mid+1;

mid=(beg+end)/2;
}

if(a[mid]==data)
{
loc=mid;
printf("The data location is = %d ",loc);
printf("\n\n\nThe data is = %d",a[mid]);
}
else
{
if((data!=a[mid]||beg>end))
printf("The search is unsuccessful");

getch();
}

B C S GOVT. P. G. COLLEGE DHAMTARI Page 21


Student Name->

ASSIGNMENT - 13
/* COUNTING VOWELS SPACE & CONSONANT TO A STRING */
#include<stdio.h>

#include<conio.h>

void main()

{ char str[50];

int i,s=0,v=0,c=0;

clrscr();

printf("Enter any statement:\n");

gets(str);

for(i=0;str[i]!='\0';i++)

switch(str[i])

case 'a':

case 'A':

case 'i':

case 'I':

case 'o':

case 'O':

case 'u':

B C S GOVT. P. G. COLLEGE DHAMTARI Page 22


Student Name->

case 'U':

case 'e':

case 'E':

v++;

break;

case ' ':

s++;

break;

default:

c++;

printf("\n\t space = %d consonant = %d space = %d",v,c,s);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 23


Student Name->

ASSIGNMENT - 14
/* CHECK STRING ARE EQUAL OR NOT */
#include<stdio.h>

#include<conio.h>

void main()

char str1[20],str2[20];

int l1,l2,i;

clrscr();

printf("Enter the string1:\n");

scanf("%s",str1);

printf("Enter the string2:\n");

scanf("%s",str2);

for(l1=0;str1[l1]!='\0';l1++);

for(l2=0;str2[l2]!='\0';l2++);

if( l1==l2 )

for(i=0;i<l1;i++)

B C S GOVT. P. G. COLLEGE DHAMTARI Page 24


Student Name->

if(str1[i]!=str2[i])

break;

if(i==l1)

printf("\n\t both string are equal");

else

printf("\n\t both string are not equal");

else

printf("\n\t both string are not equal");

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 25


Student Name->

ASSIGNMENT - 15
/* WAP FOR ADDITION OF TWO STRING */
#include<stdio.h>

#include<conio.h>

void main()

char str1[20],str2[20],str3[40];

int j,i,len1,len2;

clrscr();

printf("Enter the first string:\n\n");

scanf("%s",str1);

printf("Enter the second string:\n\n");

scanf("%s",str2);

for(len1=0;str1[len1]!='\0';len1++);

for(len2=0;str2[len2]!='\0';len2++);

for(i=0;str1[i]!='\0';i++)

str3[i]=str1[i];

B C S GOVT. P. G. COLLEGE DHAMTARI Page 26


Student Name->

str3[i]=' ';

i++;

for(j=0;str2[j]!='\0';j++,i++)

str3[i]=str2[j];

str3[i]='\0';

printf("Addition of these string's is :\n\n");

printf("%s\n",str3);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 27


Student Name->

ASSIGNMENT - 16
/* WAP FOR TWO MATRIX ADDITION */

#include<stdio.h>
#include<conio.h>
void main()
{
int a[5][5],b[5][5],c[5][5];
int i,j,r1,r2,c1,c2;
clrscr();

printf("\n\tEnter the no of row & column of 1st metrix :\n\t");


scanf("%d%d",&r1,&c1);

printf("\n\tEnter the no of row & column of second metrix :\n\t");


scanf("%d%d",&r2,&c2);

if( (r1==r2)&&(c1==c2) )
{
//INPUT 1ST MATRIX
printf("\nEnter the element of first metrix :\n\n");
for(i=0;i<r1;i++)
{
for(j=0;j<c1;j++)
scanf("%d",&a[i][j]);

B C S GOVT. P. G. COLLEGE DHAMTARI Page 28


Student Name->

//INPUT 2ND MATRIX


printf("\nEnter the element of secind metrix :\n\n");
for(i=0;i<r2;i++)
{
for(j=0;j<c2;j++)
scanf("%d",&b[i][j]);

//DISPLAY 1ST MATRIX

printf("the 1st metrix :\n\n");


for(i=0;i<r1;i++)
{
printf("\n\t");
for(j=0;j<c1;j++)
printf("%3d",a[i][j]);
}

//DISPLAY 2ND MATRIX


printf("\n\nthe second metrix :\n\n");
for(i=0;i<r2;i++)
{
printf("\n\t");
for(j=0;j<c2;j++)
printf("%3d",b[i][j]);
}

B C S GOVT. P. G. COLLEGE DHAMTARI Page 29


Student Name->

//MATRIX ADDITION
printf("\n\nthe metrix addition :\n\n");
for(i=0;i<r1;i++)
{
printf("\n\t");
for(j=0;j<c1;j++)
{
c[i][j]=a[i][j]+b[i][j];
printf("%3d",c[i][j]);
}
}
}
else
printf("\n\n matrix addition not possible");

getch();
}

B C S GOVT. P. G. COLLEGE DHAMTARI Page 30


Student Name->

ASSIGNMENT - 17
/* WAP FOR TWO MATRIX MULTIPLICATION */

#include<stdio.h>
#include<conio.h>
void main()
{
int a[10][10],b[10][10],c[10][10];
int sum=0,r1,r2,c1,c2,i,j,k;
printf("enter the value of r1,r2,c1,c2\n\n");
scanf("%d%d%d%d",&r1,&c1,&r2,&c2);

printf("\n\nenter the eliments of 1st matrix\n\n");


for(i=0;i<r1;i++)
{
for(j=0;j<c1;j++)
scanf("%d",&a[i][j]);
}
printf("\nenter the eliment of 2nd matrix\n\n");

for(i=0;i<r2;i++)
{
for(j=0;j<c2;j++)
scanf("%d",&b[i][j]);
}

printf("\nthe 1st matrixis\n\n");

for(i=0;i<r1;i++)
{
for(j=0;j<c1;j++)
printf("%d\t",a[i][j]);
printf("\n\n");
}
printf("\nthe 2nd matrixis\n\n");

B C S GOVT. P. G. COLLEGE DHAMTARI Page 31


Student Name->

for(i=0;i<r2;i++)
{
for(j=0;j<c2;j++)
printf("%d\t",b[i][j]);
printf("\n\n");
}
printf("\nthe matrix multipication\n\n");

for(i=0;i<r1;i++)
{
for(j=0;j<c2;j++)
{
for(k=0;k<c1;k++)
{
c[i][j]=sum+a[i][k]*b[k][j];
}
printf("%d\t",c[i][j]);
sum=0;
}
printf("\n\n");
}
getch();
}

B C S GOVT. P. G. COLLEGE DHAMTARI Page 32


Student Name->

ASSIGNMENT - 18
/* WAP TO FIND FACTORIAL OF ANY NUMBER USING POINTER*/
#include<stdio.h>

#include<conio.h>

void main()

int *p,n,i,f=1;

clrscr();

printf("Enter any number\n");

scanf("%d",&n);

p=&n;

for(i=1;i<=*p;i++)

f=f*i;

printf("\n\t factorial of %d = %d",*p,f);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 33


Student Name->

ASSIGNMENT - 19
/* write a program for fiboneci series using recursive function */
#include<conio.h>

#include<stdio.h>

int fibbo(int);

void main()

int n,i=0;

clrscr();

printf("Enter the no. of terms U want to fibbo series:\n");

scanf("%d",&n);

printf("\nThe fibonacci series is as follows:\n\n");

while(i<n)

i++;

printf("%d\n",fibbo(i));

getch();

int fibbo(int i)

B C S GOVT. P. G. COLLEGE DHAMTARI Page 34


Student Name->

if((i==1)||(i==0))

return(0);

if(i==2)

return(1);

if(i>2)

return(fibbo(i-1)+fibbo(i-2));

B C S GOVT. P. G. COLLEGE DHAMTARI Page 35


Student Name->

ASSIGNMENT - 20
/* WAP TO IMPLIMENT POINTER WITH ARRAY */

#include<stdio.h>

#include<conio.h>

void main()

{ int a[50],i,*p,n,sum=0;

printf("Enter the size of array:\n\n");

scanf("%d",&n);

printf("\nEnter the %d numbers of array:\n\n",n);

for(i=0;i<n;i++)

scanf("%d",&a[i]);

for(i=0;i<n;i++)

printf("Address a[%d]=%u\n\n",i,&a[i]);

p=a;

printf("\nthe value of array elements:\n\n");

for(i=0;i<n;i++)

{ printf("Address [p+%d] = %u\tValue = %d\n\n",i,(p+i),*(p+i));

sum=sum+(*(p+i));

} printf("\n\nSum = %d",sum);

getch();

B C S GOVT. P. G. COLLEGE DHAMTARI Page 36


Student Name->

OFFICE
AUTOMATION

B C S GOVT. P. G. COLLEGE DHAMTARI Page 37


Student Name->

1. Type the text as shown below and perform the tasks as directed:-

Computers

COMPUTER is an electronic that process data gives meaningful information.

Computer are being used in almost all the fields today.

EXPERT SYSTEMS

HUMAN THINKING AND ARTIEICAL INTELLIGENCE

Can computer think?

AI at work Today: Natural Language programs and Expert System.

THE IMPACT OF COMPUTER ON PEOPLE

The positive Impact

The potential Dangers

THE IMPACT OF COMPUTER ON ORGANIZATION

The information processing Industry

The Positive impact on Using Organizations

The Potential Dangers on using organizations

(i) Search for the word ‘Computer’ in the entire document. All the occurrences
of the given word are to be searched irrespective of the case.

Solu :- Use Home->Find->Find what: computer->Select match case->Go on clicking


find next at last close the dialog box.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 38


Student Name->

(ii) In the above question note that word also searches ‘computerization’ and
‘computerizations’ . Now make sure that this time word searches only for the word
‘computer’ in the entire document.

Solu :- Use Home->Find->Find what: computer->Select whole words only->Go on


clicking find next. At last close the dialog box.

Change the entire uppercase letter to lowercase.

Solu :- Use Home->Font->Change case->Lowercase->OK.

(vi) Apply outside border to entire document.

Solu :- Use Page layout->Page Borders->OK.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 39


Student Name->

(viii) Change page setup according to the following specifications.

Top margin: 1.5”, bottom margin: 1.5” gutter”, left margin: 1.5”

Right margin: 1, page width: 7.5”, page height: 6.5”, orientation: portrait.

Solu :- (i) Page Layout->Page Setup->Top: 1.5->bottom: 1.5.

(ii) Gutter: 1->Left: 1.5->Right: 1.

(iii) Page width: 7.5->Page height: 6.

(iv) Orientation: portrait->OK.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 40


Student Name->

Character Formatting , Paragraph Formatting

Q-2. Type and format the text as shown below if any spelling or grammar mistake
occurs correct it using spelling and grammar facility.

DELHI

New Delhi, the capital and largest city of India is a fusion of the ancient and modern.
The remains of the Muslim dynasties with its architectural delights, give the majestic
ambience of the bygone era.

On the other side New Delhi, The imperial city built by British, reflects the fast
paced present. The most fascinating of all is the character of Delhi which varies
from the 13th century mausoleum of the Lodi kings to ultra modern glass
skyscrapers.

Solu:- (i) Type the text as shown, pressing enter key after each paragraph.

(ii) Select the text DELHI and use Home->Font->Bold->Italic->OK.

(iii) Select the two paragraphs and use Home->Paragraph->indent left: 0.5->OK.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 41


Student Name->

Character Formatting

Q-3. Type text and format the text as shown below:-

C2H5OH+ PCL5= C2H5CL+POCL3+HCL

4H3PO3=3H3PO4+PH3

PCL3+CL2=PCL5

Solu:- Type the text then after typing text select the digits (firstly select any digit
then hold down control and go on selecting remaining digits). Use Home->Font-
>Subscript->OK.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 42


Student Name->

Bullets and Numbering

Q-4. Write text and format as shown below:-

1) Own house

 2400 square feet living area


 Separate bungalow
 Car shed available

2) Car

 Maruti omni van


 Registration number TN 728195
 1994 model

Solu:- (i) While typing sub items within own house you have to press tab key once,
similarly ; before typing sub items within car you have to press tab key once.

(ii) Select the whole text and use bullets and numbering->click on list style tab-
>add-> Apply formatting to: 1st level-> click on number icon, apply formatting to:
2nd level-> click on bullets icon->OK->OK.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 43


Student Name->

Q-5. Create a following table.

Admission 2005-06

Course OC BC MBC SC/ST TOTAL


Computer science 9 18 5 5 37

14 25 6 5 50
Commerce
Grand Total 87

Solu:- (i) Insert->Table-> insert->no. Of columns: 6, no. Of rows: 4-> press ok


button.

(ii) Click on cell and type text for cells except for the last row. Use tab key to
navigate.

(iii) To use border the last row select first 5 cell from the last row and use merge
cells by right click of the mouse button then type text ’Grand’ Total’, then click
‘align centre’.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 44


Student Name->

(iv) Position insertion point on the last cell of the last row use Layout-> Formula.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 45


Student Name->

MS-EXCEL

B C S GOVT. P. G. COLLEGE DHAMTARI Page 46


Student Name->

Question1. Create the following worksheet and save the worksheet as wages.xls.

PACE COMPUTERS (ATC CEDE). Govt. of India

Payroll for Employee (Temporary)

Today date 3-Jul-08

Pay rate 95

Workers name Hired on Days worked Gross wages

Kushagra 3-Mar-07

Pradeep 4-Mar-07

Puneet 5-Mar-07

Rajeev 6-Mar-07

Answer:-

(i) Calculate days work and gross wages.

Formula used in cell to Calculate Days Work:-

C6=B3-B6=488

C7=B3-B7=487

C8=B3-B8=486
B C S GOVT. P. G. COLLEGE DHAMTARI Page 47
Student Name->

C9=B3-B9=485

Formula used in cell to Calculate Gross Wages: -

D6=B4*C6=46360

D7=B4*C7=46265

D8=B4*C8=46170

D9=B4*C9=46075

Question2. Create the following worksheet and save the worksheet as wages.xls.

Basic Total Total


HRA(% of Bonus(
Name (monthly) DA(Rs) salary salary %(increase)
basic) Rs)
(RS) (1997) (1998)

Shiromani 5000 10 450 1200

Somya 9000 15 800 200

Tanya 7000 12 900 1800

Answer:-

(i) Calculate the total salary as sum of basic, HRA, DA, for each employee for 1997.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 48


Student Name->

Ans. Calculation: -

E2 =SUM (B2:D2) =5950

E3 =SUM (B3:D3) =11150

E4 =SUM (B4:D4) =8740

(ii) Calculate total salary for year 1998 as sum of 1997 and bonus.

Ans. Calculation: -

G2 =SUM (E2:F2) =7150

G3 =SUM (E3:F3) =11350

G4 =SUM (E4:F4) =10540

Question3. Create a worksheet as follows: -

Pace computer(atc. cedt) govt. Of India

Payroll for employee (permanent)

Empcode Name Doj Salary Bonus Net salary

E001 Meenu 3-Mar-95 5000

E002 Manoj 4-Mar-95 4000

E003 Preeti 5-Mar-06 4800

E004 Sumita 6-Mar-05 7500

Answer :-

B C S GOVT. P. G. COLLEGE DHAMTARI Page 49


Student Name->

(i) Allow bonus 8000 to employee having service> 2 year otherwise allow bonus
3000.
Calculate bonus: -

E3 = if(year (B1)-year(C3)>2,8000,3000)

E4 = if(year (B1)-year(C4)>2,8000,3000)

E5 = If(year (B1)-year(C5)>2,8000,3000)

E6 = if(year (B1)-year(C6)>2,8000,3000)

B C S GOVT. P. G. COLLEGE DHAMTARI Page 50


Student Name->

MS-POWERPOINT

Q1. Write an animated presentation about any three courses available in college.

VARIOUS COURSES AVAILABLE


 B.SC
 BBA
 BCA
 PGDCA
 B.COM
 MCM

B C S GOVT. P. G. COLLEGE DHAMTARI Page 51


Student Name->

B.COM
ELIGIBILITY 12TH PASS

DURATION 3 YRS

FEES 11,000

EXAM PATTERN YEAR WISE

BCA
ELEGIBILITY 12TH PASS

DURATION 3 YRS

FEES 31,000

EXAM PATTERN YEAR WISE

B C S GOVT. P. G. COLLEGE DHAMTARI Page 52


Student Name->

BBA
ELEGIBILITY 12TH PASS

DURATION 3 YRS

FEES 21,000

EXAM PATTERN SEMESTER WISE

STEPS:-

1) CLICK ON MS-OFFICE BUTTON.

(i)CLICK ON NEW. NEW SLIDE APPEARS.

(ii)SELECT THE SLIDE WITH DESIRED LAYOUT.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 53


Student Name->

2) Slide with table:

(i)click on insert menu.

(ii)When box appears ,it asks you to enter the no. of rows and columns and click OK
button.

3)For applying a design:

(i) Open the presentation you want to apply a design to. Click on design menu and apply
selected design.

Q2. Write an animated presentation about communication of a bad news.

Solu:

B C S GOVT. P. G. COLLEGE DHAMTARI Page 54


Student Name->

B C S GOVT. P. G. COLLEGE DHAMTARI Page 55


Student Name->

Q1.Create a data base named collage in which defined for table:-

(a) Student information=std-id std-enroll std-nm std-dob std-class std-con

(b) Fee structure=std-id std-clg.fee std-pyd.fee std-balance std-receipt.no:-

B C S GOVT. P. G. COLLEGE DHAMTARI Page 56


Student Name->

(c) Library information=std-id book-id book-name issue-date return-date book-


fine:-

(d)Exam department=std-roll.no std-enroll std-class std-total marks std-result:-

B C S GOVT. P. G. COLLEGE DHAMTARI Page 57


Student Name->

Relationships:-

B C S GOVT. P. G. COLLEGE DHAMTARI Page 58


Student Name->

B C S GOVT. P. G. COLLEGE DHAMTARI Page 59


Student Name->
Q2.List out all records off student & issue book:-

B C S GOVT. P. G. COLLEGE DHAMTARI Page 60


Student Name->

B C S GOVT. P. G. COLLEGE DHAMTARI Page 61


Student Name->

Q3.List out records of student who’s balance is more then $5000:-

B C S GOVT. P. G. COLLEGE DHAMTARI Page 62


Student Name->

B C S GOVT. P. G. COLLEGE DHAMTARI Page 63


Student Name->

Q4.Create a report for exam report for student:-

B C S GOVT. P. G. COLLEGE DHAMTARI Page 64


Student Name->

Q.5 Create a table in MS access with database “student” containing a student table
,fees table and grade table and creating relationship between the tables.

Sol:- steps

(i) The first step is to create a new database to store the data. Here create a
database “student” with 3 tables having name:-
a) Student table
b) Fees table
c) Grade table

Creating a new database:-

1) Choose new from the file menu in the access opening screen. A window is
displayed which asks for the name of new database.
2) Type the file name as student.accdb
3) Click the create button to create the database.
4) The database window is displayed on the screen. From the database window
screen double click on the table for creating table in design view.

Creating table:-
1) to create the table click on design view.
2) now type field name in field column & give the datatype.
3) save the student table.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 65


Student Name->

B C S GOVT. P. G. COLLEGE DHAMTARI Page 66


Student Name->

Foxpro
Q1 :– Calculate and Print the Multiplication Table of a Number entered

Solution:

ans=”y”
do while ans=”y”
clear
input “enter the table to print :” to t
i=1
do while i <=10
p=t*i
?str(t)+ “ *” + str(i,4) + “ = ” + str(p,4)
i=i+1
enddo
accept “want to print another table :” to ans
enddo

B C S GOVT. P. G. COLLEGE DHAMTARI Page 67


Student Name->

Q2 : Function for finding Sum of digit

Solution:

function sumdigit
para num
sum=0
num=alltrim(str(num))

lgt=len(num)
i=1
do while i <= lgt
s=substr(num,i,1)
sum=sum+val(s)
i=i+1
enddo
return sum

B C S GOVT. P. G. COLLEGE DHAMTARI Page 68


Student Name->

Q3 : Programme to convert ritu kamal agrwal to R.K. agrwal

Solution:

clear
accept “enter name” to nm

nm = alltrim(nm)

cntSPace= occurs(” “,nm)

res=””
a=0
for i=1 to cntSPace
res=res + substr(nm,a+1,1) + “. ”
a = at(” “,nm,i)
?”a”,a
endfor
res=res + substr(nm,a)
?”result is : ” + res

B C S GOVT. P. G. COLLEGE DHAMTARI Page 69


Student Name->

Q.4 foxpro program to print calendar.

Input month and year and calendar will be shown.

Solution:

set date brit


set cent on
clear
decl a(5,7)
input “Enter month ” to mn
input “Enter year” to yr
if mn > 12 or mn < 1 then
?”invalid month”
return
endif
store 0 to a
store 0 to r,c,mndays
dt = ctod(“01/” +str(mn,2)+”/”+str(yr,4))
do calcdays
r=1
?dt
c=dow(dt)
for r = 1 to 6
for j = c to 7
rowno = iif(r<6,r,1)
a(rowno,j) = day(dt)
if day(dt)>=mndays then
exit loop
endif
dt = dt + 1
endfor
if day(dt)>=mndays then
exit loop
endif
c=1
endfor
clear
?
?cmonth(dt) + str(year(dt),5)
B C S GOVT. P. G. COLLEGE DHAMTARI Page 70
Student Name->

?”*********************”
?”S” at 7
??”M” at 12
??”T” at 17
??”W” at 21
??”Th” at 27
??”F” at 32
??”SA” at 37
?
colm=0
for r = 1 to 5
for c = 1 to 7
if a(r,c) <> 0 then
?? str(a(r,c),5) at colm + c*5
endif
endfor
?
endfor
proc calcdays
**************
do case
case mn =1 or mn= 3 or mn= 5 or mn= 7 or mn= 8 or mn= 10 or mn= 12
mndays = 31
case mn= 4 or mn= 6 or mn= 9 or mn=11
mndays = 30
case mn = 2
if mod(yr,4) = 0 and not mod(yr,100)<> 0 then
mndays = 29
else
if mod(yr,4)=0 and mod(yr,100) = 0 and mod(yr,400) = 0 then
mndays = 29
else
mndays = 28
endif
endif
endcase

B C S GOVT. P. G. COLLEGE DHAMTARI Page 71


Student Name->

Q.5 Basic FoxPro commands

Solution:

Browse
A Browse window allows you to view records in a table, edit those records, and
append
additional records. Visual FoxPro allows you to have several Browse windows open
at the same
time.
eg. This will open the invidx table so its contents can be viewed
Use invidx
Browse
Copy To
Creates a new file from the contents of the currently selected table.
eg. This will Copy the invln table to a new table test1
Use invln
Copy to test1
Delete
Marks records for deletion.
eg. This will delete all of the records from the Products table with a Location = 0
Use Products
Delete for Location=0
For
The For command is used to specify a criteria the desired action is to be taken on.
eg. This will display entries in the fintrans table with a value in the Audit field of
35164
Use fintrans
Browse For Audit=35164
Modify Label
Opens the Label Designer to create or modify a label.
eg. This will open the barcode label for modifying
Modify label barcodes
Modify Report
Opens the Report Designer to create or modify a report.
eg. This will open the report inv01 for modifying
Modify report inv01
Quit
Ends the current Visual FoxPro session and returns control to the operating system.
Replace
Replaces data in a field with the value in an expression. Fields in unselected work
areas must

B C S GOVT. P. G. COLLEGE DHAMTARI Page 72


Student Name->

be prefaced with their alias.


eg. This will replace the Pricemeth value (currently 1) in the Products table with a 2
for a
Product Code BP
replace pricemeth with 2 for Code=”BP”
Select
Activates the specified work area.
eg This will activate the table invln in the work area 0
Select 0
Use invln
Use
Opens a table and its associated index files or opens a SQL view.
eg. This will open the table custtran then allow is to be viewed (browsed)
Use custtran
browse
Zap
Removes all records from a table, leaving just the table structure.
eg. This will delete all barcode labels in the barcode table
Use barcodes excl
Zap

NB: Use with care as all items deleted can not be recalled

B C S GOVT. P. G. COLLEGE DHAMTARI Page 73


Student Name->

TALLY
Q.1 HOW TO CREATE A COMPANY IN TALLY.

Solution:

Once the software is downloaded, start the Tally.erp 9, and the below screen will
appear. It will prompt to create a company, if there is no company created or loaded
and so, the Select option is disabled automatically. Now just read the full articles
here for company creation in Tally.

Now hit Create company button and you will find below screen

company creation in Tally | First step to do?

Type legal name of company and its mailing address.

Note : You may alter name and address at any time latter on you wish so.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 74


Student Name->

After address, select your county.Than select Stat

If your office location is in Mumbai from where you have to prepare books of
account,and your business unit is in Delhi,then you have to select your state as Delhi
and not Maharashtra.

Now you have to select method of accounts i.e. Accounts only or Accounts with
inventory

If you select accounts only then you will not be able to keep record of inventory.

Further, you have to select period of accounting year.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 75


Student Name->

Accounting year is a period for which books of accounts are being managed.

Calendar year is the year starting from 1st January of any year and ends on 31st
December of the same year.

Q.2 HOW TO CREATE PURCHASE VOUCHER IN TALLY.

Solution:

1. Configure Purchase Voucher Class

Go to Gateway of Tally > Accounts Info. > Voucher Type >Alter > Purchase

Give a name to the class under Name of Class say Purchase Class. You can create
more than one class. (Make sure that Enter Purchases in Invoice Format in F11
feature is enabled to create class). Create the Class as follows:

In Default Accounting Allocations for each Item in Invoice (except for the items
specified below) section

B C S GOVT. P. G. COLLEGE DHAMTARI Page 76


Student Name->

 Select the Purchase Ledger – Local Purchases. All the stock items that will be
entered in the voucher using this class, except for those specified in the
Default Accounting Allocations for section, will be automatically allocated to
Local Purchases. Of course, the stock item record remains as it is and can be
viewed separately

 Specify 100% in Percentage field

 Set Override using Item Defaults to No

Default Accounting Allocations

Set the option Default Accounting Allocations for to Not Applicable (Refer to
Voucher Class - Allocation of Stock Item for the usages of this option).

2. Record Purchase

Pass a Purchase entry using the created Purchase Class:

Go to Gateway of Tally > Accounting Vouchers > F9 Purchase > and select the Class

1. Select the Supplier Account

B C S GOVT. P. G. COLLEGE DHAMTARI Page 77


Student Name->

You will observe that the Ledger Accounts grouped under Sundry Debtors are also
listed as you have not specified any condition to exclude Sundry Debtors Group. If
you have specified Sundry Debtors under Exclude option, then Tally would have
displayed the Ledgers excluding those Ledgers grouped under Sundry Debtors.

Please note that the Freight Ledger is automatically displayed and the user has to
only specify the value.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 78


Student Name->

Once you select Item B, specify the Quantity and rate, the value will be
automatically calculated and the cursor will directly move to the Name of Item field
instead of popping up the Accounting Allocations for screen.

B C S GOVT. P. G. COLLEGE DHAMTARI Page 79


Student Name->

Q.3 HOW TO CREATE LEDGER IN NORMAL MODE.

Solution:

Go to Gateway of Tally > Accounts Info > Ledgers > Single Ledger > Create

B C S GOVT. P. G. COLLEGE DHAMTARI Page 80


Student Name->

Name

Enter the Name of the account. You can provide the full name of the account.
Tally.ERP 9 fits it all in. Press Enter to move to the next field. Tally.ERP 9 does not
allow the entry of duplicate names. The uniqueness check is made here itself.

Note that the punctuation and other non-relevant information are ignored by
Tally.ERP 9 in its recognition of a name. Thus, CST, C.S.T. and C. S. T. are all
considered as same.

Tally.ERP 9 converts the first letter of all relevant words to upper case, which helps
you; speed up data entry.

Q.4 HOW TO CREATE PRE-DEFINE VOUCHER IN TALLY.

Solution:

Go to Gateway of Tally > Display > List of Accounts > Ctrl+V [Voucher Types]

Or

Go to Gateway of Tally > Accounts info / Inventory Info > Voucher types > Alter

B C S GOVT. P. G. COLLEGE DHAMTARI Page 81


Student Name->

Alter a predefined voucher type

Even if you do not need extra voucher types, you would normally alter the
predefined voucher types to customise them according to your needs, e.g., to control
their numbers.

Go to Gateway of Tally > Accounts info / Inventory Info > Voucher types > Alter

B C S GOVT. P. G. COLLEGE DHAMTARI Page 82


Student Name->

B C S GOVT. P. G. COLLEGE DHAMTARI Page 83

You might also like