0% found this document useful (0 votes)
31 views30 pages

Project of Shri

This document appears to be a certificate and record of computer projects completed by a student named Shrishail Mahajan in class XI 'A'. It includes signatures of the student, internal examiner, and principal to certify completion of the projects. It also thanks their mentor Mr. PG Gehi for his assistance and advice throughout the projects. The document then includes a table listing 25 practical projects completed with page numbers and remarks.
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)
31 views30 pages

Project of Shri

This document appears to be a certificate and record of computer projects completed by a student named Shrishail Mahajan in class XI 'A'. It includes signatures of the student, internal examiner, and principal to certify completion of the projects. It also thanks their mentor Mr. PG Gehi for his assistance and advice throughout the projects. The document then includes a table listing 25 practical projects completed with page numbers and remarks.
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/ 30

Academic Year 2023-24

COMPUTER PROJECT
1/01/2023

-Cdt. SHRISHAIL MAHAJAN


CERTŤFŤCATE
This is to certify that cdt.
SHRISHAIL MAHAJAN
of class XI ‘A’ holding roll. No. 6585 has
successfully completed all the requirement of
this practical file for the academic session
2022-23.

Signature of Signature of
student internal examiner
Signature of
principal
ACKNOLEDGEMENTS
I would like to express my special
thanks to our mentor Mr. PG GEHI
SIR
for his time and efforts he provided
throughout the year. Your useful advice and
suggestions were really helpful tome during
the project's completion. In thisaspect, I am
eternally grateful to you.
Sr.no Practical no. Page. Remarks
No.

01 Pract-1 01
02 Pract-2 02
03 Pract-3 03
04 Pract-4 04
05 Pract-5 05
06 Pract-6 06
07 Pract-7 07
08 Pract-8 08
09 Pract-9 09
10 Pract-10 10
11 Pract-11 11
12 Pract-12 12
13 Pract-13 13
14 Pract-14 14
15 Pract-15 15
16 Pract-16 16
17 Pract-17 17
18 Pract-18 18
19 Pract-19 19
20 Pract-20 20
21 Pract-21 21
22 Pract-22 22
23 Pract-23 23
24 Pract-24 24
25 Pract-25 25
#PROGRAMME NO -
# WHICH OF THE FOLLOWING IS THE GREATEST NUMBER
a=float(input("Please the 1st number = "))
b=float(input("Please the 2nd number = "))
c=float(input("Please the 3rd number = "))
d=float(input("Please the 4th number = "))
if(a>=b)and(a>=c)and(a>=d):
print(a,"is the greatest number.")
if(b>=c)and(b>=a)and(b>=d):
print(b,"is the greatest number.")
if(c>=b)and(c>=a)and(c>=d):
print(c,"is the greatest number.")
if(d>=b)and(d>=c)and(d>=b):
print(d,"is the greatest number.")
"""PGM to input names of ‘n’ countries and their capital and currency, store it in
a dictionary and display
in tabular form. Also search and display for a particular country. """
d1=dict()
i=1
n=int(input("Enter number of entries"))
while i<=n :
c=input("enter country : ")
cap=input("enter capital : ")
curr=input("enter currency of country : ")
d1[c]=(cap,curr)
i+=1
l=d1.keys()
print("\n country\t\t","capital\t\t","currency")
for i in l :
z=d1[i]
print('\n',i,'\t\t',end="")
for j in z :
print(j,'\t\t',end="\t\t")
#searching
x=input("\n enter country to be searched : ")
for i in l :
if i==x :
print("\n country\t\t","capital\t\t","currency\t\t")
z=d1[i]
print('\n',i,'\t\t',end="")
for j in z :
print(j,'\t\t',end="\t\t")
PhoneDict={"rushikesh":9623121431,
"dharmaraj":7796826262,
"DEEP":8975660202,
"RABIYA":4569217,
"MURUGHAN":3241567,
"SAMPREE":4673215}
for x in PhoneDict :
print(x,":",PhoneDict[x])
#seperating keys and values
#1st dictionary
dict2={"mon":1,"tues":2,"wed":3,"thr":4,"fri":5,"sat":6,"sun":7}
print("original dictionary is",dict2);
print("the separated keys are")
print(dict2.keys())
print("the separated values are")
print(dict2.values())

print("and")
#2nd dictionary
dict3={1:"mon",2:"tues",3:"wed",4:"thr",5:"fri",6:"sat",7:"sun"}
print("original dictionary is",dict3);
print("the separated keys are")
print(dict3.keys())
print("the separated values are")
print(dict3.values())
A=eval(input("enter list : "))
length=len(A)
element=int(input("enter element : "))
i=0
for x in range(0,length) :
if element==A[x] :
i+=1
if i==0 :
print(element,"not found in given list")
else :
print(element,"has frequency as",i,"in given list")
# PROGRAMME NO -
#FIND THE FACTORIAL
num=int(input("\Please the factorial you want ="))
fact=1
# 'FOR' LOOP COUNTINOUS PROCESS
for x in range(1,num+1):
fact=fact*x
print("FACTORIAL OF ",num,"IS",fact)
#PGM TO CHECK IF THE INPUTE NUMBER IS PRIME OR NOT

num=int(input("Enter the number"))

#prime no. is greter than 1


if num>1:
#check for factors
for i in range(2,num):
if (num%i==0):
print(num,"is not a prime number")
print(i,"times",num//i,"is",num)
break
else:
print(num,"is a prime number")

#if no. is less than


#or equal to 1, it is not a prime
else:
print(num,"is not a prime number")
# PROGRAMME NO -
#PROGRAMME FOR PYTHAGORIAN TRIPLET TILL n
n=int(input("please tell the number till you want the phythas = "))
for x in range(1,n+1):
for y in range(x,n+1):
for z in range(y,n+1):
if((x*x+y*y==z*z)or(z*z+y*y==x*x)or(y*y==z*z+x*x)):
print("(x:-",x,"y:-",y,"z:-",z,")")
#pgm for simple calculator
n1=int(input("tell the value of num 1\n"))
n2=int(input("tell the value of 2\n"))
print("\n print + for addition")
print("\n print - for subtraction")
print("\n print * for multiplication") #\n is used for changing the line
print("\n print / for division")
opr=input("input operator\n")
if (opr=='+') : # if() will check which operation is to be done
ans=n1+n2
print("addition of ",n1,"and",n2,"is =",ans)
elif (opr=='-') : # elif() will give another condition
ans=n1-n2
print("subtraction of",n1,"and",n2,"is =",ans)
elif (opr=='*') :
ans=n1*n2
print("product of",n1,"and",n2,"is =",ans)
elif (opr=='/') :
ans=n1/n2
print("division of",n1,"and",n2,"is =",ans)
else : # else() will function when none of the given
conditions is satisfied
print(" invalid operation ")
#PROGRAMME TO FOR GROCERY SHOPS FOR BILLING WITH DISCOUNT
print("!!!!WELCOME TO MY SSS GROCERY SHOP!!!!")
print("sugarcost=40.20/kg,biscuitcost=10.78/packet,pulsescost=60.62/kg")
sugarquantity=int(input("please tell the quantity of sugar="))
biscuitquantity=int(input("please tell the quantity of biscuits="))
pulsesquantity=int(input("please tell the quantity of pulses="))
totalcostofsugar=sugarquantity*40.20
toatalcostofbiscuit=biscuitquantity*10.78
totalcostofpulsesquantity=pulsesquantity*60.62
TOTALBILL=totalcostofsugar+toatalcostofbiscuit+totalcostofpulsesquantity
if((TOTALBILL>=1000)and(TOTALBILL<=1499)):
print("CONGO YOU HAVE SHOPPED ABOVE Rs.1000 ")
print("YOU WILL HAVE 5% DISCOUNT")
A=5/100*TOTALBILL
TOTALBILLS=TOTALBILL-A
print("YOUR ORIGINAL BILL WAS = ",TOTALBILL)
print("THE DISCOUNT YOU RECIEVED IS = ",A)
print("HENCE YOUR BILL IS = ",TOTALBILLS)
print("...THANKS FOR COMING...")
print("!!!!VISIT AGAIN!!!!")
print(input("ARE YOU HAPPY WITH OUR SERVICE="))
if(TOTALBILL>=1500)and(TOTALBILL<=1999):
print("CONGO YOU HAVE SHOPPED ABOVE Rs.1500 ")
print("YOU WILL HAVE 10% DISCOUNT")
E=10/100*TOTALBILL
TOTALBILLS=TOTALBILL-E
print("YOUR ORIGINAL BILL WAS = ",TOTALBILL)
print("THE DISCOUNT YOU RECIEVED IS = ",E)
print("HENCE YOUR BILL IS = ",TOTALBILLS)
print("...THANKS FOR COMING...")
print("!!!!VISIT AGAIN!!!!")
print(input("ARE YOU HAPPY WITH OUR SERVICE="))
if(TOTALBILL>=2000)and(TOTALBILL<=2999):
print("CONGO YOU HAVE SHOPPED ABOVE Rs.2000 ")
print("YOU WILL HAVE 15% DISCOUNT")
D=15/100*TOTALBILL
TOTALBILLS=TOTALBILL-D
print("YOUR ORIGINAL BILL WAS = ",TOTALBILL)
print("THE DISCOUNT YOU RECIEVED IS = ",D)
print("HENCE YOUR BILL IS = ",TOTALBILLS)
print("...THANKS FOR COMING...")
print("!!!!VISIT AGAIN!!!!")

if(TOTALBILL>=3000)and(TOTALBILL<=3999):
print("CONGO YOU HAVE SHOPPED ABOVE Rs.3000 ")
print("YOU WILL HAVE 20% DISCOUNT")
C=20/100*TOTALBILL
TOTALBILLS=TOTALBILL-C
print("YOUR ORIGINAL BILL WAS = ",TOTALBILL)
print("THE DISCOUNT YOU RECIEVED IS = ",C)
print("HENCE YOUR BILL IS = ",TOTALBILLS)
print("...THANKS FOR COMING...")
print("!!!!VISIT AGAIN!!!!")

if(TOTALBILL>=4000):
print("CONGO YOU HAVE SHOPPED ABOVE Rs.4000 ")
print("YOU WILL HAVE 30% DISCOUNT")
B=30/100*TOTALBILL
TOTALBILLS=TOTALBILL-B
print("YOUR ORIGINAL BILL WAS = ",TOTALBILL)
print("THE DISCOUNT YOU RECIEVED IS = ",B)
print("HENCE YOUR BILL IS = ",TOTALBILLS)

print("...THANKS FOR COMING...")


print("!!!!VISIT AGAIN!!!!")
if(TOTALBILL<=1000):
print("HENCE YOUR BILL IS = ",TOTALBILL)
print("CONGO YOU HAVE SHOPPED BELOW Rs.1000")
print("SORRY,BUT YOU DO NOT GET ANY DISCOUNT")
print("...THANKS FOR COMING...")
print("!!!!VISIT AGAIN!!!!")
#PGM TO CHECK GRETEST AMONG THREE NUMBERS

x=float(input("Tell 1st number"))


y=float(input("Tell 2nd number"))
z=float(input("Tell 3rd number"))

if(x>y):
if(x>z):
print("Among",x,",",y,"and",z,"\nthe gretest no.is=",x)
else:

print("Among",x,",",y,"and",z,"\nthe gretest no.is=",z)


elif(y>z):
print("Among",x,",",y,"and",z,"\nthe gretest no.is=",y)
else:
print("Among",x,",",y,"and",z,"\nthe gretest no.is=",z)
#PROGRAM TO INPUT HOUSE CODE AND KNOW ABOUT YOUR HOUSE
# HERE WE ENTER HOUSE NAMES AS CODES REPRESENTED BY A DIGIT
print("Enter the following house no.s and choose the house")
print(" 1=KARVE HOUSE ")
print(" 2=PRATAP HOUSE ")
print(" 3=SHASTRI HOUSE ")
print(" 4=TILAK HOUSE ")
print(" 5=NEHRU HOUSE ")
print(" 6=SHIVAJI HOUSE ")
x=int(input("PLEASE TELL THE HOUSE CODE YOU GOT : "))
# NOW WE ENTER OUR RESPECTIVE DIGITS
if (x==1) :
# ABOUT YOUR HOUSE
print("You are from Karve House ")
print("Your house is known as SPARTANS")
print("Your House Master is Mr.N Srikarthikeyan")
print("Your House Supdt. is Mr. D S Kunkule")
print("So you Know about your House")
elif(x==2):
print("You are from Pratap House ")
print("Your house is known as EAGLES")
print("Your House Master is Mr.S Y Patil")
print("Your House Supdt. is Mr.S N Pawar")
print("So you Know about your House")
elif(x==3):
print("You are from Shastri House ")
print("Your house is known as SHOOTERS")
print("Your House Master is Mr.S C Thoke")
print("Your House Supdt. is Mr.U S Babar")
print("So you Know about your House")
elif(x==4):
print("You are from Tilak House ")
print("Your house is known as TIGERS")
print("Your House Master is Mr.M Dathatri")
print("Your House Supdt. is Mr.P D Pawar")
print("So you Know about your House")
elif(x==5):
print("You are from Nehru House ")
print("Your house is known asTHUNDERS")
print("Your House Master is Mr.Ramkrishna Yaddanpudi")
print("Your House Matron is Mrs.N Shaikh ")
print("So you Know about your House")
elif(x==6):
print("You are from Shivaji House ")
print("Your house is known as CHALLENGERS")
print("Your House Master is Mrs.M S Kadam")
print("Your House Supdt. is Mrs.K B Kazi")
print("So you Know about your House")
else:
print("Invalid House no.")
#BUBBLE SORTING
aList=[15,6,13,22,3,52,2,546,879,46]
print("original list is:",aList)
n=len(aList)
for i in range(n):
for j in range(0,n-i-1):
if aList[j]>aList[j+1]:
aList[j],aList[j+1]=aList[j+1],aList[j]
print(aList[j],"and",aList[j+1],"are exchanged here")
else :
print("no exchange here")
print("List After Sorting :", aList)
pp1=input()
print("total no of comparisions =",j)
pp=input()
# Python program to demonstrate
# Addition of elements in a List

# Creating a List
List = []
print("Initial blank List: ")
print(List)

# Addition of Elements
# in the List
List.append(1)
List.append(2)
List.append(4)
print("\nList after Addition of Three elements: ")
print(List)

# Adding elements to the List


# using Iterator
for i in range(1, 4):
List.append(i)
print("\nList after Addition of elements from 1-3: ")
print(List)

# Adding Tuples to the List


List.append((5, 6))
print("\nList after Addition of a Tuple: ")
print(List)

# Addition of List to a List


List2 = ['For', 'Geeks']
List.append(List2)
print("\nList after Addition of a List: ")
print(List)
#pgm for BMI
a=float(input("tell your weight in KGs"))
b=float(input("tell your height in metres"))
BMI=(a/(b*b))
print("your BMI is",BMI)
if(BMI>25) :
print("you are overweight")
elif(BMI<18) :
print("you are underweight")
else :
print("you are fit by weight")
# PROGRAMME NO -
# PROGRAMME TO KNOW THE SURFACE AREA AND VOLUME SPHERE
r=float(input("Please tell the radius of the sphere = "))
A=4*3.14*r**2
V=1/3*3.14*r**3
print("This is the volume of the sphere = ",V)
print("This is the surface area of the sphere = ",A)
p=float(input("tell prncipal amount"))
r=float(input("tell rate of interest"))
n=float(input("tell time period"))
c=(1+r/100)
d=c**n
e=p*d
print("the compund interest is ",e-p)
#PROGRAMME NO -
# SYSTEM FOR KNOWING EXCHANGE OR SWAP SYSTEM
n1=int(input("Please tell the first number = "))
n2=int(input("Please tell the second number = "))
print("These are two numbers = :n1:",n1,"and n2:",n2)
#THIS IS BASIC REQUIREMENT FOR EXHANGE/SWAP SYSTEM
n1,n2=n2,n1
print("The number are exchange are = :n1:",n1,"and n2:",n2)
print("THIS SYSTEM IS KNOW AS EXCHANGE OR SWAP SYSTEM")
#Insertion sort
aList =[15,6,13,22,3,52,2]
print("original list is :",aList)
for i in range(1,len(aList)) :
key=aList[i]
print("key=",key)
nalya=input()
j=i-1
while j>=0 and key<aList[j] :
aList[j+1]=aList[j]
print(j,"shifts to",j+1,"that is ",aList[j],"is exchanging with",key)
#print(aList[j],"and",key,"are exchanged here")
j-=1
else :
aList[j+1]=key
#print("no exchange here")
print("list after sorting : ",aList)
pp1=input()
print("total no of comparisions=",i)
pp=input()
#pgm to tell whether a string is a palindrome or not
str1=input("enter a string")
l=len(str1) #len() will count no of elements in the
string
p=l-1
index=0
while(index<p) : #while() is a conditional iteration function
if (str1[index]==str1[p]) :
index+=1
p-=1
else :
print(str1,"string is not a palindrome")
break
else :
print(str1,"string is a palindrome")
#string analysis
# PROGRAM TO INPUT A STRING AND DISPLAY ITS ANALYSIS
Str1=input("Please tell the String : ") # ENTER THE VALUE OF STRING
for x in Str1: # USING FOR LOOP
if(x.isdigit()): # x.isdigit REPRESENTS NUMERIC VALUES
print(x,":- It is a numerical value ")
elif(x.isalpha()): # x.isalpha REPRESENTS LITERAL VALUES
print(x,":- It is an alphabet ")
elif(x.isalnum()): # x.isalnum REPRESENTS LITERAL AND NUMERIC
VALUES
print(x,":- It is a Special Character ")
elif(not(x.isalpha()) and not(x.isdigit())):
print(x,":- It is a Special Character ")
elif(x.isalpha()) and (x.iscapitalize()): # x.iscapitalize CONVERTS SMALL
LETTERS INTO CAPITAL LETTERS
print(x,":- It is a Capital Letter ")
# Different types of tuples

# Empty tuple
my_tuple = ()
print(my_tuple)

# Tuple having integers


my_tuple = (1, 2, 3)
print(my_tuple)

# tuple with mixed datatypes


my_tuple = (1, "Hello", 3.4)
print(my_tuple)

# nested tuple
my_tuple = ("mouse", [8, 4, 6], (1, 2, 3))
print(my_tuple)
tup = ()
for i in range(1 , 27):
tup = tup + ( chr(i + 96 )* i ,)
print(tup,"\n")
# PROGRAMME NO -
# PROGRAMME TO GET THE REVERSE OF NUMBER
n1=int(input("Please tell the number\t"))
while(n1>0):
r=n1%10
print(r,end='')
n1=int(n1/10)
print(" I HOPE U GOT REVERSE OF NUMBER")
# PROGRAMME NO -
# FOR FINDING X RAISED TO Y
base =float(input("tell base"))
exponent =float(input("tell index"))
exp1=exponent
result = 1

while exponent != 0:
result *= base
exponent-=1

print(base,"raised to power ",exp1,"is=",result)

You might also like