KENDRIYA VIDYALAYA NO.
2 ARMAPUR
KANPUR
K
E
N
D
R
I
Y
COMPUTER SCIENCE PROJECT
A
Python Program F o r B i k e P R I C E C A L C U L A T O R
With GUI Using Tkinter
V
I
UNDER GUIDANCE:- PROGRAMED BY:-
D Sir
MR. Ashok Uttam HARSHIT YADAV
Sig. Y Class-11th A
A Roll No. -13
L
A
Y
A
#CONTENT
CERTIFICATE
ACKNOWLEDGEMENT
REQUIREMENT
PROJECT DETAIL
REASON TO BUILD THIS PROGRAM
USES OF THIS PROGRAM
CODING(OR PROGRAM) OF PROJECT
OUTPUT
BIBLIOGRAPHY
Certificate
This is certify that Computer
Science Project Title by ‘Bike
Price calculator’ has been
successfully completed
by“ Harshit Yadav” Of class XI-A
bearing Roll No. 13 under the
guidance of Mr. Ashok Uttam
(Subject Teacher). During
academic session 2022-2023 as per
the guidelines issued by CBSE.
Teacher’s Signature
ACKNOWLEDGEMENT
I would like to express my special thanks of
gratitude to my teacher MR. Ashok Uttam,
who gave me the golden opportunity to do
this wonderful project of COMPUTER SCIENCE.
The Only One Who helped me in Doing the
Programming .Form His Help, I came to know
about so many new things such as Modules,
Built-in-Functions & many more . I am really
thankful to Him.
Secondary I would also like to thank my
parents who helped me a lot in Research &
finalizing this project within the limited time
frame.
HARSHIT YADAV
XIth A
REQUIREMENTS
Hardware
Printing Device to print the
project report.
Compact Disc.
Ram 2GB.
Hard Disk 512Gb.
Software
Operating system Windows 7 , 8 ,10
Python 3.10(IDLE 3.10.7 64-bits) for
execution of program.
MS Word for Report
Presentation (doc.
File)
PROJECT
DETAILS
To build This project we are going to use
the ‘Tkinter Module’ . Using the Tkinter
Module, we create the GUI (Graphical
User Interface) of our project. We
configure a GUI window having
Labels,Entries(inputs) and Butttons.
Enteries use to input the ex-showroom
price of bike & then it give the Total
Amount(output) including Insurance,Road
Tax and Accessories of the chosen Bike
Project Prerequisites
To build this project, we need to
install the Tkinter Module in our
system.
P.T.O
Steps To Create The Program
Important(main) Steps Required to
build the program:
1. Importing the Required
Modules .
2. Configure GUI Window .
3. We make a Separated frame to
store Images & Bikes Detail
4. Importing Images from Desktop
5. Creating a command using ‘def’ for
the essential Calculation
Importing Required Modules
I am importing the Tkinter Module
here, Import* means importing
everything in the TkinterModule.
P.T.O
Configure GUI Window
After Importing ‘tkinter’ , make the GUI
Window and configure its
Geometry(size),Colour,Title and also
Making its Label, Combobox, Buttons &
Frame
Main Modules & Function Uses in
Program:-
GEOMETRY() – To specify the Size
Of GUI Window & Coordinates on
Main Window by coding
“root.geometry (width x height+x-
axis+y-axis)”.
LABEL() – This is used to helps us
display a Sequence of Text on the
GUI Window which we want to
Represent by coding
“variable=label(root,)”.
P.T.O
ComboBox() – This helps to create
box different from entry ,used to
take Input from User just by
Selecting Variables . It required to
import “tkinter import ttk”.it
coded as
“variable=ttk.Combobox(root)”.
BUTTON() – This is used to
creates a button on the GUI
Window Which help to Run the
Program or to proceed the
Program Further.
-
>b1=Button(root,text=,width=
, command= )
-> b1.grid(row= ,column= )
P.T.O
We make a Separated frame to
store Images & Bikes Detail
FRAME()- This is used to make separate space like
a Box in which you can create
labels,entries,buttons and you can also import
image here
#Creating Frame
>f=Frame(root,bg='darkred',highlightbackground='
green',highlightthickness=3,widt
h=1500,height=450)
>f.place(x=50,y=330)
In the frame, we store(import) the
image for more detail by using code:-
img=PhotoImage(file=r'path of
images\name of file or image .png' )
Label(f,image=img,font='',fg='',bg='')
.place(x= ,y= )
P.T.O
Creating a command using ‘def’ for
the essential Calculation
#Creating Command def bill():
a=c1.get()
ins=e2.get()
#Creating Detail Of Bike Price
dict1={'Royal Enfeild
Classic':204000,'Royal Enfeild
Metor':200926,'Yahama FZ-S':121979,'TVS
Apache RTR 200':145000,'Royal Enfeild
Continental GT':304911,'Harley
Davidsion Fat Bob':1803062,'Harley
Davidsion Sportsters S':
1653993,'Kawasaki
Ninja':7990000,'Harley Davidson Iron
883':1197109}
b=int(dict1[a])
#Creating Program For Road Tax
if b >200000:
t= (6/100)*b P.T.O
else: t=(8/100)*b
rt=b+t i=1000
if ins.lower()=='yes':
total=rt+I
# z is variable represent Amount Of
Insurance
z=1000
elif ins.lower()=='no':
total=rt BIKE PRICE CALCULATOR
z=0
lblfinal.configure(text='TOTAL
AMOUNT(Icluding
Accessories):'+str(total))
lblins.configure(text='INSURANCE
AMOUNT:'+str(z))
lblrt.configure(text='ROAD TEXT:
'+str(t))
P.T.O
Reason to Built this Program
There are two types of price of bikes:-
1. EX-Showroom price
2.ON-Road Price
But none of these is the final price. After
on-road price it includes
RTO,INSURANCE,ACCESSORIES and etc
Mainly In INDIA, This Difference is Huge
about to 20,000 to 30,000
USES OF MY PROGRAM
It reduce the difference between Ex-
Showroom Price and Final Price because
its Automatically include(or added)
Mandatory Taxes and Expenditure. So a
User can Easily Predict the Amount.
BIBLIOGRAPHY
https://www.google.com/
Computer Science Notebook
(Classwork Copy)
THANK U SIR….