Project of Shri
Project of Shri
COMPUTER PROJECT
1/01/2023
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
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)
if(x>y):
if(x>z):
print("Among",x,",",y,"and",z,"\nthe gretest no.is=",x)
else:
# 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)
# Empty tuple
my_tuple = ()
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