You are on page 1of 18

Vision International School

Of Excellence

ACADEMIC YEAR 2021-2022

NAME: Ayush Nikose

CLASS: XII Science

SUBJECT: Computer Science

ROLL NO. 11605555

1
CERTIFICATE

This is to certify that Ayush Nikose of grade XII


Science has satisfactorily completed and submitted
the Investigatory project of Computer Science Topic:
Echallan System of class XII AISSCE practical exam
for the academic year 2021-22.

Teacher’s Signature Principal’s


Signature

External Examiner’s Signature Date:

External Examiner’s Name:

External Examiner’s No. :

School Stamp:

2
ACKNOWLEDGMENT

I would like to express my special thanks and


gratitude to my subject teacher Mr. Vikas Panchal
and Principal Ms. Kavita Ranka ma’am for their
constructive advice and constant motivation have
been responsible for the successful completion of my
project.
My sincere thanks to my parents and my classmates
for their motivation and support.

Name: Ayush Nikose


Class: XII Science

3
INDEX

Sr.No. CONTENT PAGE NO.

1. Information 05
2. Objective 06
3. Required Software 07

4. Required Hardware 07

5. Technology 08

6. Source Code 09

7. Output 14

8. Conclusion 18

9. Reference 18

4
INTRODUCTION

The concept of e- challan system has been introduced. A


vehicle e challan is a computer-generated challan used by
the Traffic Police and is being issued to all the traffic
defaulters in India. The Government of India has initiated
this process to make the traffic services convenient, easy
as well as transparent to the general public.

Also, with e- challan system effective and strong


monitoring of the traffic violators becomes easy for the
traffic police. In the age of digitalization, traffic defaulters
will be able to now pay e-challan either online or offline,
depending on the facility given by their city or state. E-
challan system has been introduced to avoid cash
transactions so that everything is very clear and
transparent.

5
OBJECTIVE: -
The main objective of the project including the
following:
1.It reduces workload of traffic police and makes this
whole challan process easy.
2.It ensures that the money will be directly credited
to the government.
3.It reduces the chances of error and one will have
digital proof of their challan which will be valid
throughout the state.
4.It will also spread the national concept of equality
as everyone will be equal before law.
5.Enforce traffic regulations.

6.Reduce traffic violations.

7.Ensure safety of people on the road.

8.Ensure that penalties are paid on time.


9. Reduces the incidence of duplicate or fake traffic
challans.

6
SOFTWARE REQUIREMENT
SPECIFICATION
Software is the part of the computer system, which
enables the user to interact with several physical
hardware devices.

Operating System : Windows 7 or 10/Vista/2000, Linux


Database : My SQL
Documentation Tools : Ms Office

HARDWARE REQUIREMENT
SPECIFICATION
The collection of internal electronic circuits and external
physical devices used in building a computer is called the
Hardware.

Processor : Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz 2.70 GHz


RAM : 4 GB
Disk Space : 5 GB

7
TOOLS AND TECHNOLOGY :

• PYTHON is a dynamic, high level, free open


source and interpreted programming
language. It supports object-oriented
programming as well as procedural oriented
programming.

FEATURES OF PYTHON :-

1. Easy to code.
2. Free and Open Source.
3. Object-Oriented Language.
4. GUI Programming Support.
5. High-Level Language.
6. Extensible feature.
7. Python is Portable language.
8. Python is Integrated language.
9. 9.Interpreted Language.
10. 10.Large Standard Library

8
Source Code

import mysql.connector as con

db=con.connect(host="localhost",user="roo
t", password="Ayush24")

cur=db.cursor()
cur.execute("show databases")
database=cur.fetchall()
c=0

for i in database:
if "echallan1" in i:

print("************************GOVERNMENT
OF INDIA**************************")
print(" GUJARAT POLICE
")
print("
")
print(" CHALLAN DETAILS
")

cur.execute("use echallan1")
c=1
break

if c==0:
cur.execute("Create database
echallan1")

9
cur.execute("use echallan1")
cur.execute("create table
challan(Echallan_No int primary
key,date date, time
varchar(10),vehicle_no
varchar(15),State
varchar(10),Location
varchar(15),reason
varchar(50),challan_amount
int(15),payment_mode varchar(30))")
cur.execute("create table
validity(vehicle_no int(10),due_date
date)")

def challan():
Echallan_No=input("Enter Echallan
Number")
date=input("Enter Date")
time=input("Enter Time")
vehicle_no=input("Enter Vehicle
No")
State =input("Enter State")
Location=input("Enter Location")
reason=input("Enter Reason")
amount=input("Amount For Cause")
payment=input("Enter Payement
Mode")
q1="insert into challan
values(%s,%s,%s,%s,%s,%s,%s,%s,%s)"

val=(Echallan_No,date,time,vehicle_
no,State,Location,reason,amount,pay
ment)
cur.execute(q1,val)
10
db.commit()

def validity():
vehicle_no=input("Enter Vehicle
No")
incident_date=input("Enter Incident
Date")
validity=input("This Challan Form
Will Be Invalid After One Week Of
Incident")
q2="insert into validity
values(%s,%s,%s)"
val=(vehicle_no,validity,penalty)
cur.execute(q2,val)
db.commit()

def amount():
vn=input("Enter vehicle number")
q1="select * from challan"
cur.execute(q1)
d=cur.fetchall()
for data in d:
if vn in data:
print("\n1Reason",data[6],"\
n2Amount",data[7])

else:
print("---------------
RECORD DOES NOT EXIST--------------
---")

def precautions():
print("\n1.Do not drink and
drive\n2.Keep a safe distance
11
from vehicles!\n3.Drive within
the speed limits.")

while True:
print("\n1.Make Challan\n2.Track
old
records\n3.Precaution\n4.validi
ty\n5.Generate Challan")
ch=int(input("Enter your choice"))
if ch==1:
challan()
elif ch==2:
amount()
elif ch==3:
precautions()
elif ch==4:
validity()
elif ch==5:
cur.execute("select*from
challan")
c=cur.fetchall()
name=input("Enter vehicle
number")
for i in c:

if i[2].upper()==name.upper():

file=open("challan.txt","w")
print("*******GOVERNMENT OF
INDIA*************")
print(" Challan Details ")
s="Vehicle
No:"+str(i[2])+"\nDate:"+str(i[
12
0])+"\nTime:"+str(i[1])+"\nLoca
tion:"+str(i[5])+"\nReason:"+st
r(i[6])+ "\nAmount:"+str(i[7])
file.write(s)
file.close()
else:
print("Wrong choice")
break

13
Output
→Main Menu

→Making Challan

14
→Tracking Old Records

→Precautions

4.Validity

15
5.Generate Challan

→Bill Output

→Tables in echallan1 (MYSQL)

16
→Challan Table Details

→Validity table

17
Conclusion

- These two applications offer many benefits and


features which cover all the main aspects of the
Administration System. The traffic e challan can be
paid both online as well as by the traffic violators.
- The fine amount is calculated automatically as per
the offence and the Enforcement Officer then takes a
print out of the traffic e challan with all the
necessary details and gives the same to the offender
- The defaulter is allowed to pay online by scanning
the QR code received or can make cash payment at
the RTO office or can deposit cash at onsite.

REFERENCE

• https://panchalvikascs.blogspot.com/
• https://nevonprojects.com
• https://opus.govst.edu

18

You might also like