Cs Project Billing Management Software
Cs Project Billing Management Software
Cs Project Billing Management Software
on
bill payment SYSTEM
Submitted By:
Name:Divyanshu Shakya
Class: XII A
Roll No-
External Examiner
CERTIFICATE
Ashok Uttam
PGT(Computer Science)
K. V. No-2 Armapur
DECLARATION
Name:divyanshushakya
Class: XIIA
Roll No:11
ACKNOWLEDGEMENT
1. Hardware Requirement:
intel I3 Processor
Minimum 2 GB RAM
2. Software Requirement:
Windows 7/8/10 OS
Mysql
Tkinter module
A BRIEF INTRODUCTION OF PYTHON
GUI apps like Text-Editors are used to create, read, update and
delete different types of files.
GUI apps like Sudoku, Chess and Solitaire are games which you
can play.
GUI apps like Google Chrome, Firefox and Microsoft Edge are
used to browse through the Internet.
They are some different types of GUI apps which we daily use on the
laptops or desktops.
Python has a plethora of libraries and these 4 stands out mainly when it
comes to GUI. There are as follows:
Kivy
Python QT
wxPython
Tkinter
Entry(root1,bd=10,textvariable=a1,fg='mediumblue',font='pa
pyrus 25').place(x=450,y=170)
Entry(root1,bd=10,textvariable=a2,fg='mediumblue',font='pa
pyrus 25',show='*').place(x=450,y=280)
Button(root1,bd=10,width=8,text='ENTER',command=enter,fg
='yellow',bg='mediumblue',font='forte 20 ').place(x=70,y=430)
Button(root1,bd=10,width=8,text="CLEAR",command=clear,fg
='yellow',bg='mediumblue',font='forte
20').place(x=320,y=430)
Button(root1,bd=10,width=8,text='EXIT',command=close,fg='y
ellow',bg='mediumblue',font='forte 20').place(x=590,y=430)
#####label for tagline###########
Label(root1,text='BE',fg='maroon2',bg='cyan',font='chiller 50
bold').place(x=10,y=700)
Label(root1,text='SURE',fg='maroon2',bg='cyan',font='chiller
70 bold').place(x=640,y=700)
Label(root1,text='BUY',fg='maroon2',bg='cyan',font='chiller 60
bold').place(x=670,y=700)
Label(root1,text='PURE!!!',fg='maroon2',bg='cyan',font='chille
r 70 bold').place(x=650,y=780)
Label(root1,text='Developed
by:\nHARSHIT&DIVYANSHU\nKV2
Armapur',bg='red',fg='yellow',font='arial 20 bold
italic').place(x=910,y=550)
#####question page#####
fromtkinter import *
fromtkinter import messagebox
root2=Tk()
root2.geometry('1100x800')
root2.title("Menu")
root2.configure(bg='orange red')
def enter1():
root2.destroy()
importbill_payment_systen
def enter2():
root2.destroy()
import update
db=mysql.connector.connect(host='localhost',
user='root',
password='',
database='bill_payment'
)
my_cur=db.cursor()
root5=Tk()
root5.title('update values')
root5.geometry('730x700')
root5.configure(bg='red')
v1=StringVar()
v2=StringVar()
v3=StringVar()
v4=StringVar()
def clear():
v1.set('')
v2.set('')
v3.set('')
v4.set('')
def search():
item_no=v1.get()
def update():
item_no=v1.get()
item_name=v2.get()
item_pri=v3.get()
item_type=v4.get()
my_cur.execute('update price set
itemname=%s,price=%s,type=%s where
itemno=%s',(item_name,item_pri,item_type,int(item_no)))
db.commit()
messagebox.showinfo('congarats','recoard updated')
def delete():
item_no=v1.get()
item_name=v2.get()
item_pri=v3.get()
item_type=v4.get()
v1.set('')
v2.set('')
v3.set('')
v4.set('')
my_cur.execute('delete from price where
itemno=%s',(item_no,))
db.commit()
messagebox.showinfo('congarats','recoard deleted')
def submit():
item_no=v1.get()
item_name=v2.get()
item_pri=v3.get()
item_type=v4.get()
my_cur.execute('insert into
price(itemno,itemname,price,type)
values(%s,%s,%s,%s)',(int(item_no),item_name,int(item_pri),i
tem_type))
db.commit()
messagebox.showinfo('congarats','recoard submitted')
def back():
root5.destroy()
import questions
def enter():
root5.destroy()
importbill_payment_systen
##### creating label of title and time ###
Label(root5,text='UPDATE
RECORD',fg='black',bg='red',font='algerian 50 bold
italic',width=15).place(x=50,y=20)
local_time = time.asctime(time.localtime(time.time()))
Label(root5, font = 'arial 20 bold', text = local_time, fg =
"black", bd = 10,bg='red', anchor = 'w').place(x=100,y=100)
Label(root5,text='ITEM_NO',fg='black',bg='red',font='arial 25
bold italic').place(x=30,y=190)
Label(root5,text='ITEM_NAME',fg='black',bg='red',font='arial
25 bold italic').place(x=30,y=260)
Label(root5,text='PRICE',fg='black',bg='red',font='arial 25
bold italic').place(x=30,y=330)
Label(root5,text='TYPE',fg='black',bg='red',font='arial 25 bold
italic').place(x=30,y=400)
Entry(root5,textvariable=v1,bd=10,width=20,font='arial 20
bold italic').place(x=350,y=180)
Entry(root5,textvariable=v2,bd=10,width=20,font='arial 20
bold italic').place(x=350,y=250)
Entry(root5,textvariable=v3,bd=10,width=20,font='arial 20
bold italic').place(x=350,y=320)
Entry(root5,textvariable=v4,bd=10,width=20,font='arial 20
bold italic').place(x=350,y=390)
Button(root5,text='SEARCH',fg='black',bg='linen',bd=10,font=
'arial 14 bold',command=search).place(x=30,y=500)
Button(root5,text='UPDATE',fg='black',bg='linen',bd=10,font=
'arial 14 bold',command=update).place(x=190,y=500)
Button(root5,text='DELETE',fg='black',bg='linen',bd=10,font='
arial 14 bold',command=delete).place(x=350,y=500)
Button(root5,text='CLEAR',fg='black',bg='linen',bd=10,font='a
rial 14 bold',command=clear).place(x=520,y=500)
Button(root5,text='SUBMIT',fg='black',bg='linen',bd=10,font=
'arial 14 bold',command=submit).place(x=120,y=600)
Button(root5,text='BACK',fg='black',bg='linen',bd=10,font='ar
ial 14 bold',command=back).place(x=300,y=600)
Button(root5,text='BILL',fg='black',bg='linen',bd=10,font='aria
l 14 bold',command=enter).place(x=450,y=600)
#####Billing page#####
fromtkinter import*
importtkinter.messagebox
import time
import random
importmysql.connector
db=mysql.connector.connect(host='localhost',
user='root',
password='',
database='bill_payment'
)
my_cur=db.cursor()
root = Tk()
root.geometry("1600x800+0+0")
root.title("bill payment system")
root.configure(bg='salmon1')
##### creating label of title and time ###
#rand = StringVar()
v1= StringVar()
v2 = StringVar()
v3 = StringVar()
v4 = StringVar()
v5 = StringVar()
v6 = StringVar()
v7 = StringVar()
v8 = StringVar()
v9 = StringVar()
v10 = StringVar()
v11 = StringVar()
v12=StringVar()
v13=StringVar()
v14=StringVar()
v15=StringVar()
############
a1= StringVar()
a2 = StringVar()
a3 = StringVar()
a4 = StringVar()
a5 = StringVar()
a6 = StringVar()
a7 = StringVar()
a8 = StringVar()
a9 = StringVar()
a10 = StringVar()
def price():
my_cur.execute('select price from price')
rec=my_cur.fetchall()
fries_p=rec[0][0]
a1.set(fries_p)
burger_p=rec[1][0]
a2.set(burger_p)
Sandwich_p=rec[2][0]
a3.set(Sandwich_p)
drinks_p=rec[3][0]
a4.set(drinks_p)
Tacos_p=rec[4][0]
a5.set(Tacos_p)
Pasta_p=rec[5][0]
a6.set(Pasta_p)
Pastries_p=rec[6][0]
a7.set(Pastries_p)
pizza_p=rec[7][0]
a8.set(pizza_p)
noodles_p=rec[8][0]
a9.set(noodles_p)
dosa_p=rec[9][0]
a10.set(dosa_p)
v1.set('0')
v2.set('0')
v3.set('0')
v4.set('0')
v5.set('0')
v6.set('0')
v7.set('0')
v8.set('0')
v9.set('0')
v10.set('0')
def total():
fries_q = v1.get()
burger_q = v2.get()
Sandwich_q = v3.get()
drinks_q = v4.get()
Tacos_q = v5.get()
Pasta_q = v6.get()
Pastries_q = v7.get()
pizza_q = v8.get()
noodles_q = v9.get()
dosa_q=v10.get()
tax_q=v11.get()
total_q=v12.get()
my_cur.execute('select price from price')
rec=my_cur.fetchall()
fries_p=rec[0][0]
burger_p=rec[1][0]
Sandwich_p=rec[2][0]
drinks_p=rec[3][0]
Tacos_p=rec[4][0]
Pasta_p=rec[5][0]
Pastries_p=rec[6][0]
pizza_p=rec[7][0]
noodles_p=rec[8][0]
dosa_p=rec[9][0]
t1=int(fries_q)*int(fries_p)
t2=int(burger_q)*int(burger_p)
t3=int(Sandwich_q)*int(Sandwich_p)
t4=int(drinks_q)*int(drinks_p)
t5=int(Tacos_q)*int(Tacos_p)
t6=int(Pasta_q)*int(Pasta_p)
t7=int(Pastries_q)*int(Pastries_p)
t8=int(pizza_q)*int(pizza_p)
t9=int(noodles_q)*int(noodles_p)
t10=int(dosa_q)*int(dosa_p)
tot=t1+t2+t3+t4+t5+t6+t7+t8+t9+t10
v13.set(str(tot))
gst=(tot)*0.18
v14.set(str(gst))
net=int(gst)+int(tot)
v15.set(str(net))
x=random.randint(23133,33344)
random_total=str(x)
v11.set(random_total)
defqexit():
root.destroy()
def reset():
v1.set("")
v2.set("")
v3.set("")
v4.set("")
v5.set("")
v6.set("")
v7.set("")
v8.set("")
v9.set("")
v10.set("")
v11.set("")
v12.set("")
v13.set("")
v14.set("")
v15.set("")
Login page
Question page
UPDATE PAGE
BILLING PAGE
CONCLUSION OF RESTAURANT
BILLING SYSTEM
https://www.w3schools.com
https://www.javatpoint.com