Sample Project Class Xii
Sample Project Class Xii
RESIDENTIAL SCHOOL
COMPUTER SCIENCE PROJECT
NAME OF STUDENTS:
2 OBJECTIVES OF THE
PROJECT
3 ADVANTAGES OF THE
PROPOSED SYSTEM
4 DEVELOPEMENT
ENVIRONMENT
5 FUTURE ENHANCEMENTS
6 RELATION TABLE
7 SOURCE CODE
8 OUTPUT SCREENSHOTS
9 BIBILOGRAPHY
CURRENCY CONVERTER
1) INTRODUCTION TO THE PROJECT:
“CURRENCY CONVERTER” is an
integrated project. This is introduced to provide
some basic functionality, so that it can be very
useful to the general public, especially those who
travel to different places frequently. All the data’s of
the currencies are managed by an relational
database in mysql operating system whose data are
uploaded from an csv file.
4) DEVELOPEMENT ENVIRONMENT:
HARDWARE REQUIREMENTS:
1. Processor : Intel(R)coretmi3 or higher
2. Memory space: Basic requirement of 2gb
ram(preferably 4Gb)
3. Hard disk drive: 40gb(minimum)
SOFTWARE REQUIREMENTS:
1. Operating system: linux-
ubuntu/windows(7-10)/Mac.Os
2. Python software: python 3.7.0
(recommended)
3. Front end : python interpreter
4. Back end : mysql , files(binary & csv)
5) FUTURE ENHANCEMENTS:
Customised output design
Multi-level user security
Interactive voice response enable
system.
Auto updating values of currency from
Google.
Sql relation:
SOURCE CODE:
import mysql.connector as sq
import pickle
db=sq.connect(host="localhost",user="root",password="R
ahulsai@2004",database="currency_convertor")
c=db.cursor()
password="MHSTAR@!123#"
def host():
db=sq.connect(host="localhost",user="root",password="Rahulsai
@2004",database="currency_convertor")
c=db.cursor()
while True:
print("1-update database")
print("2-check history")
print("3-change password")
print("4-clear history")
print("5-exit")
if choice==1:
if choice1.lower()=="a":
k=int(input("enter no.of rows to be inserted:"))
for i in range(k):
c.execute(x1)
if choice1.lower()=="b":
for i in range(k):
c.execute(x2)
elif choice==2:
try:
f=open("currency.dat","rb")
f.seek(0)
data=pickle.load(f)
for i in data:
print(i)
except EOFError:
f.close()
elif choice==3:
if p==password:
q=input("enter your new password:")
password=q
else:
print("wrong password")
elif choice==4:
f=open("currency.dat","wb")
f.close()
elif choice==5:
break
else:
def India_to_any(m,n):
db=sq.connect(host="localhost",user="root",password="Rahulsai
@2004",database="currency_convertor")
c=db.cursor()
final=n
sql1=str(sql[0])+str(sql[1])+str(sql[2])
c.execute(sql1)
h=c.fetchone()
s=float(h[0])
m1=m/s
z=m,"","rupees is","",m1,"",n
n=len(z)
z1=""
for i in range(n):
z1+=str(z[i])
print(z1)
f=open("currency.dat","ab")
lst=[]
lst.append(z)
pickle.dump(lst,f)
return m1
def any_to_India(m,n):
db=sq.connect(host="localhost",user="root",password="Rahulsai
@2004",database="currency_convertor")
c=db.cursor()
initial=n
sql1=str(sql[0])+str(sql[1])+str(sql[2])
c.execute(sql1)
h=c.fetchone()
s=float(h[0])
m1=m*s
z=m,"",n,"is","",m1,"","rupees"
n=len(z)
z1=""
for i in range(n):
z1+=str(z[i])
print(z1)
f=open("currency.dat","ab")
lst=[]
lst.append(z)
pickle.dump(lst,f)
return m1
def any_to_any(x,x1,y1):
initial=any_to_India(x,x1)
z=India_to_any(initial,y1)
ab=x,x1,"is",z,y1
n=len(ab)
ab=""
for i in range(n):
ab+=str(ab[i])
def menu():
db=sq.connect(host="localhost",user="root",password="Rahulsai
@2004",database="currency_convertor")
c=db.cursor()
while True:
print("checking identity")
if x.lower()=="host":
for i in range(3):
if n==password:
host()
break
else:
elif x.lower()=="user":
for i in c:
print(i)
if z1=="rupees":
India_to_any(z2,z3)
elif z3=="rupees":
any_to_India(z2,z1)
else:
any_to_any(z1,z2,z3)
menu()
NOTE: OUTPUT SCREENSHOTS HAS BE ATTACHED.
OUTPUT:
BIBILOGRAPHY (FROM WHERE DID
YOU TAKE REFERENCE) SHOULD
COMPULSARILY BE ATTACHED