Ip Project2
Ip Project2
MARCH 2022
A PROJEC REPORT
ON
ONLINE TRANSPORT MANAGEMENT SYSTEM
FOR
AISSCE 2022 EXAMINATION
As a part of the Informatics Practices Course (065)
SUBMITTED BY:
Mr.SivaPrasad G
PGT in Informatics Practices
CERTIFICATE
This is to certify that the Project / Dissertation entitled Project Name
is a bonafide work done by Mr. / Ms.
……………………………………..of class XII in partial fulfillment
of CBSE’s AISSCE Examination 2020-21 and has been carried out
under my direct supervision and guidance. This report or a similar
report on the topic has not been submitted for any other examination
and does not form a part of any other course undergone by the
candidate.
Signature of Principal
Name:
Place: JP Nagar
Date:……………..
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
ACKNOWLEDGEMENT
TABLE OF CONTENTS
ABSTRACT
SYSTEM REQUIREMENTS
Hardware Components:
1. VGA Monitor
2. Qwerty keyboard
3. 2GB RAM
5. Graphics card
Software Components:
1. Windows 7
DATABASE DESIGN
CODING
def transport():
print("welcome to transport management")
print('1.New user')
print('2.Existing user')
ch=int(input('Enter your choice: '))
if(ch==1):
new_user()
elif(ch==2):
existing_user()
else:
print('Inavalid input..')
#for new user
def new_user():
print("code for newuser")
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='root',
database='transport')
a=conn.cursor()
user=input('Enter User name: ')
pwd=input('Enter password: ')
s='insert into users values("'+user+'","'+pwd+'")'
a.execute(s)
print(':::::::user created successfully:::::::')
conn.commit()
def user_login():
import pymysql
conn=pymysql.connect(host='localhost',user='root',password='root',
database='transport')
a=conn.cursor()
user=input('Enter User name: ')
pwd=input('Enter password: ')
s='select *from users where un="'+user+'"'
a.execute(s)
r=a.rowcount
if(r==0):
print('Invalid username')
else:
s='select *from users where pwrd="'+pwd+'"'
a.execute(s)
r=a.rowcount
if(r==0):
print('Invalid Password')
else:
print('Valid Password \n')
select_car()
def select_car():
print('Select your car: \n')
print("1.Santro")
print("2.Kodiaq")
print("3.Verna")
print("4.SUV")
ch=int(input('Enter your choice: '))
if(ch==1):
#print("you have selected santro")
calculate_rate('Santro',3500,100,'KA 01 MJ 1234')
elif(ch==2):
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
calculate_rate('Kodiaq',5000,250,'KA 23 KJ 5678')
elif(ch==3):
calculate_rate('Verna',7500,500,'KA 78 DK 7896')
elif(ch==4):
calculate_rate('SUV',10000,1000,'KA 57 DG 8653')
else:
print('Inavalid input..')
def calculate_rate(car,per_day,per_hour,car_no):
print("you have selected ",car)
print('1.per day')
print("2.per hour")
ch=int(input('Enter your choice: '))
if(ch==1):
no_of_hours=0
no_of_days=int(input('Enter number of days: '))
total_cost_days=no_of_days*per_day
print("total cost for using ",car," is ",total_cost_days)
confirm(car,total_cost_days,no_of_days,no_of_hours,car_no)
elif(ch==2):
no_of_days=0
no_of_hours=int(input('Enter number of hours: '))
total_cost_hours=no_of_hours*per_hour
print("total cost for using ",car," is ",total_cost_hours)
confirm(car,total_cost_hours,no_of_days,no_of_hours,car_no)
else:
print('Inavalid input..')
def confirm(car,package,no_of_days,no_of_hours,car_no):
print("do you want to confirm: 1 for yes or 2 for no")
ch=int(input('Enter your choice: '))
if(ch==1):
print("********************")
print("receipt")
print("********************")
print('car: ',car)
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
else:
select_car()
print('1.transport')
print('2.Exit')
ch=int(input('Enter your choice: '))
if(ch==1):
transport()
elif(ch==2):
print('Thank you for using HSL Transport Management ')
break
else:
print('Inavalid input..')
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
OUTPUT SCREENS
1.WELCOME SCREEN
2.EXIT
3.ADMIN
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
4.EXISTING USER
5.NEW USER
A)
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
B)
6.SELECT CAR(SANTRO)
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
7.TIME PERIOD
8.
B)2 FOR NO
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
9. SELECT CAR(KODIAQ)
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
12. EXIT
ONLINE TRANSPORT MANAGEMENT SYSTEM
MARCH 2022
Bibliography:
www.google.com
www.python.org.