Computer Science Project
Computer Science Project
PROJECT
ONLINE CAB BOOKING
SYSTEM
Index:
ABSTRACT
INTRODUCTION
OBJECTIVES
SYSTEM
REQUIREMENTS
CODING
Reuse
Output
OBJECTIVES-
The fare must be economical so that it must
be in reach/budget of every person.
Cab must be reach on time on the defined
destination
Easy payment facility must be provided in
cab
Drivers identification data must be
Estimated time for a particular journey
must be provided
At the time of booking the web page must
have the interface for the starting point,
destination, type of cab (AC/Non Ac), charge
per kilometer , cab driver details, time, payment
options, service area etc
SYSTEM REQUIREMENTS-
Minimum system requirements for Cab
Management:
Processor: Intel Core i7-14700K.
RAM: 32GB
Operations:
Any booking can be done 24 hours
One form for single booking
CODING-
booking_time = datetime.now()
sql = "INSERT INTO bookings (user_name,
pickup_location, dropoff_location, booking_time)
VALUES (%s, %s, %s, %s)"
cursor.execute(sql, (user_name, pickup_location,
dropoff_location, booking_time))
db.commit()
cursor.close()
db.close()
print("Booking created successfully!")
cursor.close()
db.close()
db.commit()
cursor.close()
db.close()
print("Booking status updated successfully!")
# Main function
if __name__ == "__main__":
while True:
print("1. Create Booking")
print("2. View Bookings")
print("3. Update Booking Status")
print("4. Exit")
if choice == '1':
user_name = input("Enter your name: ")
pickup_location = input("Enter pickup
location: ")
dropoff_location = input("Enter dropoff
location: ")
create_booking(user_name, pickup_location,
dropoff_location)
else:
print("Invalid choice. Please try again.")
Reuse-
Systems are designed by building system
out of components that have been used in
other systems.
It helps to achieve a software more quickly
and at low cost.
Application system reuse:
This whole system can be reused in
travels booking.
Component reuse:
login process: this login process can be
reused in different online system.
Selecting cabs this process can be
reused in online shopping systems.
Fare calculation: this process can be
reused in different systems like train,buses
etc.
Output-
by,
Pavithran.M
Kavin.P