0% found this document useful (0 votes)
81 views34 pages

Final Record BT

The document is a record of computer applications practical experiments conducted by a student of II BSc Biotechnology. It contains 12 experiments ranging from sending emails to calculating standard deviation and prime numbers using programming languages like C and Python. For each experiment, the aim, algorithm, program code, input, output and result is documented.

Uploaded by

Rummy Boy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views34 pages

Final Record BT

The document is a record of computer applications practical experiments conducted by a student of II BSc Biotechnology. It contains 12 experiments ranging from sending emails to calculating standard deviation and prime numbers using programming languages like C and Python. For each experiment, the aim, algorithm, program code, input, output and result is documented.

Uploaded by

Rummy Boy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 34

Sree Narayana Guru College

Affiliated to Bharathiar University, Coimbatore.


Re-accredited by NAAC & An ISO 9001:2015 CertifieInstitution

K.G. Chavadi , Coimbatore – 641 105.

II BSc BIOTECHNOLOGY

Computer Applications I & II


Computer Applications I & II

PRACTICAL RECORD

DEPARTMENT OF BIOTECHNOLOGY
2022-2023
DEPARTMENT OF BIOTECHNOLOGY
SREE NARAYANA GURU COLLEGE
K.G.CHAVADI, COIMBATORE – 641 105

CERTIFICATE

REGISTER NUMBER -

This is to certify that the bonafide record work done by

_______________________________ of II BSc.BIOTECHNOLOGY in the Computer lab

of the College during the year 2022-2023.

Staff In-charge Head of the Department

Submitted for the Bharathiar University examination held on

………………………. at Sree Narayana Guru College, Coimbatore – 641105.

Internal Examiner External Examiner


INDEX
COMPUTER APPLICATIONS LAB

S.No. Date Program Name Sign


EXP NO :1

REPLY AND FORWARD A MAIL

AIM :-

ALGORITHM:

.
OUTPUT :

RESULT : The above program has been


executed successfully
RESULT :
EXP NO: 2

SEND A MAIL USING CC AND BCC

AIM:-

ALGORITHM:-
RESULT :
EX NO: 3

JOB PORTAL

AIM:-

ALGORITHM:
Result:

.
EXP NO: 4

STUDENT MARKLIST USING EXCEL

AIM:-

ALGORITHM:

.
OUTPUT:

Result:
EX NO: 5

POWER POINT PRESENTATION

AIM:-

ALGORITHM:-
OUTPUT :
.

Result:
EX NO: 6
SUM, AVERAGE AND STANDARD
DEVIATION USING C
AIM:-

ALGORITHM:-.
PROGRAM :

#include<st

dio.h>

#include<m

ath.h>

void

stand_devi(float,

float, float, float,

float, float*,

float*, float*,

float*);

int main()

{ loat a, b, c, d, e;

float sum = 0, avg =

0, sd = 0, vari = 0;

printf("Enter 5

numbers\n");

scanf("%f%f%f%f

%f", &a, &b, &c, &d,

&e);

stand_devi(a, b, c,
d, e, &sum, &avg,

&vari, &sd);

printf("\nSum =

%0.2f\n", sum);

printf("Mean

/ Average =
%0.2f\n", avg);
printf("Variance =

%0.2f\n", vari);

printf("Standard

Deviation =

%0.2f\n", sd);

return 0;

}
void stand_devi(float a, float b,

float c, float d, float e, float

*sum, float *avg, float *v, float *sd)

*sum = a + b + c + d + e;

*avg = *sum / 5.0;

*v += pow( (a - *avg), 2 );

*v += pow( (b - *avg), 2 );
*v += pow( (c - *avg), 2 );

*v += pow( (d - *avg), 2 );

*v += pow( (e - *avg), 2 );

*v = *v / 5.0;

*sd = sqrt(*v);

}
OUTPUT:

Enter 5 numbers
50
-5
14
122
41

Sum = 222.00
Mean / Average = 44.40
Standard Deviation = 43.43

Result:
EX NO: 7

PRIME NUMBERS USING C


AIM:-

ALGORITHM:-.
PROGRAM ;

#include<stdio.h>
#include<conio,h>
void main()
{
int n,i,fact,j;
printf(“Enter the Number”);
scanf(“%d”,&n);
printf(“Print the Number are;\n”);
for(i=1;i<=n;1++)
{
fact = 0;
for(j=1;j<n;j++);
{
if(i%j==0)
fact++;
}
if(fact==2)
printf(“%d”,i);
}
getch();
}

OUTPUT :
Enter the Number 20

Prime Numbers are:

2 3 5 7 11 13 17 19

Result:
EX NO: 8

FIBONACCI SERIES USING C

AIM:-

ALGORITHM:-.
PROGRAM :

#include<stdio.h>
#include<conio.h>
int main()
{
int n1=0,n2=1,n3,I,number;
clrscr()
printf(“Enter the number of elements:”);
scanf(“%d”,&number);
printf(“\n%d%d”,n1,n2);
for(i=2;i<number;++i)
{
n3=n1+n2;
printf(“%d”,n3);
n1=n2;
n2=n3;
}
getch();
}

OUTPUT :
Enter the number of elements 10
011235813213455

Result:
The above program has been executed successfully. And output verified.
EX NO: 9
SORTING USING C

AIM:-

ALGORITHM:-.
PROGRAM :

#include<stdio.h>
void main ()
{
int num[20];
int i,j,a,n;
printf(“Enter number of elements in an array”);
scanf(“%d”,&n);
printf(“Enter the elements”);
for(i=0;i<n;++i)
scanf(“%d”,&num[i]);
for(i=0;i<n;++i)
{
for(j=i+1;j<n;++j)
{
if(num[i]>num[j])
{
a = num[i];
num[i] = num[j];
num[j] = a;
}
}
}
printf(“The numbers in ascending order is”);
for(i=0;i<n;++i)
{
printf(“%d”,num[i]);
}
}

OUTPUT :
Enter number of elements in an array 5
Enter the elements
12 23 89 11 22
The numbers in ascending order is :
11 12 22 23 89

Result:
EX NO: 10

STUDENT INFORMATION USING PYTHON

AIM:-

ALGORITHM :-
CODING :
name=input("Enter
your name:")
address=input("Enter
your permanent
address:")
mob=input("Enter
your 10 digit mobile
number:")
mob1=int(mob)
count=0 while
mob1>0:
count=count+1
mob1=mob1//10 if
count==10:
print("Mobile number is valid! Proceed
with the other details") else:
mob=input("Please
enter a valid mobile
number:")
college=input("Enter
your college name:")
sub=input("Enter your
branch of study:")
print("*****Student
Details*****")
print("Name:",name)
print("Address:",end=" ")
add=address.split() for i
in add: print(i)
print("Mobile Number:",mob) print("College Name:",college)
print("Branch of Study:",sub)

OUTPUT :

Enter your name : Appu


Enter your permanent address : Lotus(H) Mundur(PO)
Kaplippara Palakkad Kerala Pin-678592
Enter your 10 digit mobile number : 9947032109
Mobile number is valid! Proceed with the other details
Enter your college name : SNGC of Arts And Science
Enter your branch of study : B.Sc Biotechnology
*****Student Details*****
Name: Appu
Address: Lotus(H)
Mundur(PO)
Kaplippara
Palakkad
Kerala
Pin-678592
Mobile Number: 9947032109
College Name: SNGC of Arts And Science
Branch of Study : B.Sc Biotechnology

Result:
EX N0:11

SIMPLE CALCULATOR USING PYTHON

AIM :-

ALGORITHM :-
CODING :

def add(a,b):

return a+b def sub(a,b):

return a-b def mul(a,b):

return a*b def div(a,b):

return a/b def

integerdiv(a,b):

return a//b def modulo(a,b):

return a%b

x=eval(input("Enter a value for x:"))

y=eval(input("Enter a value for y:"))

n=int(input("\n1.Add\n2.Subtraction\n3.Multiplication\n4.Di
vision\n5.Integer

Division\n6.Modulus\n7.Exit\nEnter your
choice:")) if n==1:
z=add(x,y)
print("Addition result is=",z)
elif n==2: z=sub(x,y)
print("Subtraction result is=",z)
elif n==3: z=mul(x,y)

print("Multiplication result is=",z) elif n==4:


z=div(x,y) print("Division result is=",z)
elif n==5:
z=integerdiv(x,y)
print("Integer division result is=",z)
elif n==6: z=modulo(x,y)
print("Modulus result is=",z)
else: exit()

OUTPUT :
Enter a value for x:10
Enter a value for y:5
1.Add
2.Subtraction
3.Multiplication
4.Division
5.Integer Division
6.Modulus
7.Exit
Enter your choice:3
Multiplication result is= 50

Result:
The above program has been executed successfully.
And output verified.
EX NO: 12

LARGEST THREE INTEGER USING PYTHON

AIM :-

ALGORITHM :-
CODING :

x=int(input("Enter the first value :"))


y=int(input("Enter the second value :"))
z=int(input("Enter the third value :"))
big=0
a=int(input("Biggest number among 3 numbers can be checked
through\n 1)Using if else\n 2)
Using Ternary Operator\n 3)Quit\n Enter your choice :")) if a==1:
if (x>y) and (x>z):
print("Biggest Value is=",x)
elif(y>x) and (y>z):
print("Biggest Value is=",y)
else:
print("Biggest Value is=",z) elif a==2:
big=(x if (x>y and x>z)
else (y if (y>x and y>z) else z))
print("Biggest Value is=",big) else:
exit()

OUTPUT :
Enter the first value :120
Enter the second value :390
Enter the third value :788
Biggest number among 3 numbers can be checked through
1)Using if else
2)Using Ternary Operator
3)Quit
Enter your choice :1
Biggest Value

RESULT :

You might also like