Ashutosh Project
Ashutosh Project
Project Report
Informatics Practices(065)
(Session: 2023-24)
PRINCIPAL
DATE STAMP
ACKNOWLEDGEMENT
I take this opportunity with great pleasure and respect to express
my first and foremost thanks to the principal,
“Mrs. Shabnam Singh”
for her encouragement and for the facilities that she provided for
this project work. I extend my hearty thanks to
“Mr. Abhay Pratap Singh”
Informatics Practices Teacher who guided me throughout the
successful completion of this project. I take this opportunity to
express my deep sense of gratitude for his guidance, constant
encouragement, immense motivation, which has sustained my
efforts at all the stages of thisproject.
I can’t forget to offer my sincere thanks to the parents and to
also my classmates who helped me to carry out this project work
successfully and for their valuable advice and support, which I
received from time to time.
CONTENT
INTRODUCTION
SOFTWARE & HARDWARE REQUIREMENT
SOURCE CODE IN PYTHON
OUTPUT SCREEN
SOFTWARE REVIEW FORM
BIBLIOGRAPHY
INTRODUCTION
This project aims to create a user-friendly and simple
“BIKE SHOWROOM MANAGEMENT SYSTEM”
in which it allows the user to purchase a vehicle and the
system enters its record in the database along with the
previously stored data and allows user to receive the bill
for their respective purchases.
Software Specification: -
Operating system: Windows 7 or above
Platform: Python IDLE 3.10 or above
Languages: Python
Hardware specification: -
Processor: Dual core or above
Hard Disk: 40 GB
RAM: 2 GB
Note:
Please install the following libraries before running the
program:
Pandas
Tkinter (if not built-in)
SOURCE CODE
TEXT:
# imports
import pandas as pd
from tkinter import *
import tkinter as tk
from datetime import datetime
# form
customername = StringVar()
fathername = StringVar()
emailid = StringVar()
phone = StringVar()
model = StringVar()
price = IntVar()
qty = IntVar()
Entry(win , width=30,textvariable=customername).grid(row=7,column=1)
Entry(win , width=30,textvariable=fathername).grid(row=8,column=1)
Entry(win , width=30,textvariable=emailid).grid(row=9,column=1)
Entry(win , width=30,textvariable=phone).grid(row=10,column=1)
Entry(win , width=30,textvariable=model).grid(row=11,column=1)
Entry(win , width=30,textvariable=qty).grid(row=12,column=1)
# pandas
def datasend():
df = pd.read_csv('project\\bikepurchaseDB.csv')
if model.get() in mdlsavail and phone.get().isnumeric() == True:
entrydict={'Customer':customername.get(),'Father':fathername.get(),'E
mail':emailid.get(),'Phone':int(phone.get()),'Model':model.get(),'Price':m
ddict[model.get()],'Quantity':qty.get()}
df.loc[len(df.index)]=entrydict
else:
errorwin = Tk()
Label(errorwin,text='Enter valid Details.').pack()
Button(errorwin,text='OK',command=errorwin.destroy).pack()
errorwin.mainloop()
df.to_csv('school\\c12\\project\\project2.0\\bikepurchaseDB.csv',
index=False)
print(df)
# new window
def new_window():
billwin = Toplevel(win)
billwin.columnconfigure(index=5,weight=1)
billwin.rowconfigure(index=7,weight=1)
billwin.title('BILL | AP MOTORS')
Label(billwin,text=' AP MOTORS',
font=('Algerian',36)).grid(row=1,column=1,columnspan=3)
Label(billwin,text=' XYZ Road, Jankipuram, Lucknow -
226220', font='Arial').grid(row=2,column=1,columnspan=3)
Label(billwin,text=' Email - [email protected]
Contact - 0522-696969', font='Arial').grid(row=3,column=1,columnspan=3)
Label(billwin,text='Details of Customer Date:{} Time:{} \n
Name: {} s/o {} | Email:
{}'.format(datetime.now().date(),datetime.now().strftime("%H:%M:%S"),c
ustomername.get(),fathername.get(),emailid.get()),font=('Arial',10),borderw
idth=1,relief='solid',width=91).grid(row=4,column=1,columnspan=4)
Label(billwin,text='Description of
Goods',font=('Arial',12),borderwidth=1,relief='solid',width=50).grid(row=5,
column=1)
Label(billwin,text='Quantity',font=('Arial',12),borderwidth=1,relief='solid',
width=10).grid(row=5,column=2)
Label(billwin,text='Rate',font=('Arial',12),borderwidth=1,relief='solid',widt
h=10).grid(row=5,column=3)
Label(billwin,text='Amount',font=('Arial',12),borderwidth=1,relief='solid',
width=10).grid(row=5,column=4)
Label(billwin,text='{}
{}'.format('TVS',model.get()),font=('Arial',12),height=5,width=50,borderwi
dth=1,relief='solid',anchor=N).grid(row=6,column=1)
Label(billwin,text='{}'.format(qty.get()),font=('Arial',12),borderwidth=1,reli
ef='solid',height=5,width=10,anchor=N).grid(row=6,column=2)
Label(billwin,text='{}'.format(mddict[model.get()]),font=('Arial',12),border
width=1,relief='solid',height=5,width=10,anchor=N).grid(row=6,column=3)
Label(billwin,text=(mddict[model.get()]*qty.get()),font=('Arial',12),borderw
idth=1,relief='solid',height=5,width=10,anchor=N).grid(row=6,column=4)
Label(billwin,text='TOTAL
AMOUNT',font=('Arial',12),borderwidth=1,relief='solid',height=2,width=71
,anchor=CENTER).grid(row=7,column=1,columnspan=3)
Label(billwin,text=(mddict[model.get()]*qty.get()),font=('Arial',12),borderw
idth=1,relief='solid',height=2,width=10,anchor=CENTER).grid(row=7,colu
mn=4)
mainloop()
-------------------------------------------------------------------------------------------------------
IDLE:
OUTPUT
Error Window
Data stored in CSV file