0% found this document useful (0 votes)
0 views

Python programming vehicle parking management

The document presents a mini project report on a Vehicle Parking Management System developed using Python, aimed at improving vehicle management efficiency in various settings. It outlines the project's objectives, problem definition, software requirements, implementation steps, and includes source code examples. The system features include vehicle registration, billing calculations, and real-time monitoring to enhance user experience and operational efficiency.

Uploaded by

Santhosh S
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Python programming vehicle parking management

The document presents a mini project report on a Vehicle Parking Management System developed using Python, aimed at improving vehicle management efficiency in various settings. It outlines the project's objectives, problem definition, software requirements, implementation steps, and includes source code examples. The system features include vehicle registration, billing calculations, and real-time monitoring to enhance user experience and operational efficiency.

Uploaded by

Santhosh S
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 18

EASWARI ENGINEERING COLLEGE

(An Autonomous Institution)


Bharathi Salai, Ramapuram, Chennai-89
DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

VEHICLE PARKING MANAGEMENT


A MINI PROJECT REPORT

(231GES211L - PROGRAMMING LABORATORY


THROUGH PYTHON)

Submitted by
RAJAGURU S (310624105087)
PUHALVANAN RS (310624105085)
SANTHOSH S (310624105102)
MANIKANDAN P (310624105064)

YEAR / SEMESTER: I / II

March 2025

1
1
EASWARI ENGINEERING COLLEGE
(An Autonomous Institution)
Bharathi Salai, Ramapuram, Chennai-89
DEPARTMENT OF ROBOTICS AND AUTOMATION

CERTIFICATE

The Mini project work entitled “VEHICLE PARKING MANAGEMENT ” has


been Certified by Department of Robotics and Automation as a part of
Internal assessment of PROGRAMMING LABORATORY THROUGH
PYTHON (231GES211L) in the second semester of first year.

Submitted for the Laboratory course Internal Assessment on ………………..

Name of the Students


RAJAGURU S
SANTHOSH S
PUHALVANAN RS
MANIKANDAN P Signature of the Faculty

2
2
‭Contents‬

‭S.No‬ ‭Title‬ ‭ age‬


P
‭Number‬

‭Abstract‬ ‭3‬
‭1‬

‭Problem Definition‬ ‭4‬


‭2‬

‭Software Requirements‬ ‭5‬


‭3‬

‭Implementation‬ ‭6‬
‭4‬

‭Source Code‬ ‭7‬


‭5‬

‭Output‬ ‭10‬
‭6‬

‭Future Enhancement‬ ‭15‬


‭7‬

‭Conclusion‬ ‭16‬
‭8‬

‭References‬ ‭16‬
‭9‬

3
‭Abstract‬
‭ his‬ ‭project‬ ‭aims‬ ‭to‬ ‭develop‬ ‭a‬ ‭comprehensive‬ ‭Vehicle‬
T
‭Management‬ ‭System‬ ‭(VMS)‬ ‭using‬ ‭Python,‬ ‭designed‬ ‭to‬
‭streamline‬ ‭the‬ ‭management‬ ‭of‬ ‭vehicles‬ ‭within‬ ‭organizations,‬
‭rental‬ ‭services,‬ ‭or‬ ‭fleet‬ ‭operations.‬ ‭The‬ ‭system‬ ‭enables‬
‭efficient‬ ‭data‬ ‭management‬ ‭by‬ ‭maintaining‬ ‭records‬ ‭of‬ ‭vehicle‬
‭details,‬ ‭owner‬ ‭information,‬ ‭service‬ ‭history,‬ ‭and‬ ‭availability‬
‭status.‬ ‭Users‬ ‭can‬‭register‬‭new‬‭vehicles,‬‭update‬‭existing‬‭data,‬
‭and‬‭retrieve‬‭information‬‭through‬‭a‬‭user-friendly‬‭interface.‬‭The‬
‭project‬ ‭leverages‬ ‭Python's‬ ‭libraries‬ ‭for‬‭database‬‭integration,‬
‭ensuring‬ ‭secure‬ ‭and‬ ‭scalable‬ ‭data‬ ‭storage.‬ ‭Additionally,‬ ‭it‬
‭includes‬ ‭features‬ ‭for‬ ‭real-time‬ ‭notifications‬ ‭for‬ ‭vehicle‬
‭maintenance,‬ ‭optimized‬ ‭search‬ ‭functionalities,‬ ‭and‬
‭customizable‬ ‭reports‬ ‭to‬ ‭improve‬ ‭decision-making.‬ ‭The‬
‭proposed‬ ‭VMS‬ ‭aims‬ ‭to‬ ‭reduce‬ ‭administrative‬ ‭overhead,‬
‭improve‬ ‭operational‬ ‭efficiency,‬ ‭and‬ ‭enhance‬ ‭the‬ ‭overall‬‭user‬
‭experience.‬

‭3‬

4
‭Problem Definition‬

‭ fficiently‬ ‭managing‬ ‭vehicle‬ ‭parking‬ ‭in‬ ‭large-scale‬ ‭or‬


E
‭multi-location‬‭facilities‬‭is‬‭a‬‭complex‬‭challenge‬‭due‬‭to‬‭limited‬
‭parking‬ ‭spaces,‬ ‭variable‬ ‭vehicle‬ ‭types,‬ ‭dynamic‬ ‭billing‬
‭requirements,‬ ‭and‬ ‭the‬ ‭need‬ ‭for‬ ‭accurate‬ ‭data‬ ‭tracking.‬
‭Traditional‬ ‭methods‬ ‭rely‬ ‭heavily‬ ‭on‬ ‭manual‬ ‭intervention,‬
‭which‬ ‭can‬ ‭result‬ ‭in‬ ‭errors,‬ ‭operational‬ ‭inefficiencies,‬ ‭and‬
‭unsatisfactory‬‭user‬‭experiences.‬‭Additionally,‬‭modern‬‭parking‬
‭facilities‬ ‭often‬ ‭require‬ ‭features‬ ‭like‬ ‭space‬ ‭allocation‬
‭optimization,‬ ‭real-time‬ ‭monitoring,‬ ‭and‬ ‭revenue‬ ‭analytics,‬
‭which manual processes cannot adequately handle.‬

‭Efficient parking management faces challenges like:‬


‭>Limited space utilization for different vehicle types.‬
‭>Manual tracking leading to errors in billing and operations.‬
‭Contents‬
‭>Inability to dynamically calculate parking fees and penalties.‬
‭Abstract‬
‭ Lack‬ ‭of‬ ‭automated‬ ‭systems‬ ‭for‬ ‭scalability‬ ‭and‬ ‭data‬
>
‭management.‬
‭>Poor customer experience due to inefficiencies.‬
‭Problem‬
‭>Missing tools for revenue tracking and analytics.‬
‭Software‬
‭4‬

5
ALGORITHM
[Font Size; Times new roman 14, line
space1.5] [Max 2 pages]

Step 1: start
Step 2: Initialization
Step 3: Vehicle Entry Process
Step 4:Parking Slot Allocation
Step 5: Vehicle Exit Processing
Step 6: Monitoring & Optimization
Step 7: Security Measures
Step 8: stop

6
6
‭Software Requirements‬
‭ o‬ ‭run‬ ‭this‬ ‭project,‬ ‭the‬ ‭following‬ ‭software‬ ‭and‬ ‭tools‬ ‭are‬
T
‭required‬‭:‬
‭•‬ P‭ ython‬‭:‬ ‭Version‬ ‭3.x‬ ‭(The‬ ‭code‬ ‭uses‬ ‭Python's‬
‭built-in-functions).‬
‭•‬ d‭ atetime‬‭:‬ ‭–‬ ‭Used‬ ‭to‬ ‭manage‬ ‭parking‬ ‭timestamps,‬
‭calculate the duration, and determine total cost.‬
‭•‬ O‭ perating‬ ‭System‬‭:‬ ‭The‬ ‭program‬ ‭can‬ ‭run‬ ‭on‬ ‭any‬
‭platform‬ ‭that‬ ‭supports‬ ‭Python,‬ ‭including‬ ‭Windows,‬
‭macOS, and Linux.‬

‭5‬

7
‭Implementation‬
‭ he‬ ‭implementation‬ ‭of‬ ‭the‬ ‭vehicle‬ ‭parking‬ ‭management‬
T
‭involves the following key steps‬‭:‬
‭●‬ ‭Define the vehicle Class‬‭:‬
‭○‬ ‭Stores‬ ‭details‬ ‭like‬ ‭vehicle‬ ‭ID,‬ ‭brand,‬ ‭model,‬ ‭year,‬
‭vehicle type, and automatically logs parking time.‬
‭○‬ ‭Calculates billing based on predefined rates‬
‭Implement theParkingManagementSystem Class:‬
‭○‬ A‭ llows‬ ‭creation‬ ‭and‬ ‭management‬ ‭of‬ ‭multiple‬
‭parking lots.‬
‭○‬ ‭Facilitates‬ ‭interaction‬ ‭through‬ ‭a‬ ‭menu-driven‬
‭interface.‬
‭●‬ ‭Automate Billing Logic:‬
‭○‬ ‭Computes‬ ‭parking‬ ‭duration‬ ‭dynamically‬ ‭using‬
‭timestamps.‬
‭●‬ ‭Add Data Export Functionality‬‭:‬
‭○‬ ‭Exports parking data to CSV for record-keeping.‬
‭●‬ ‭Enhance User Interface‬‭:‬
‭○‬ ‭Implements an interactive CLI (Command Line‬
‭Interface).‬

‭6‬

8
‭Source Code‬
‭from datetime import datetime‬

‭class Vehicle:‬
‭def __init__(self, vehicle_id, brand, model, year, vehicle_type):‬
‭self.vehicle_id = vehicle_id‬
‭self.brand = brand‬
‭self.model = model‬
‭self.year = year‬
‭self.vehicle_type = vehicle_type‬
‭self.parking_datetime = datetime.now()‬

‭def get_rate(self):‬
‭rates = {"bike": 20, "car": 40, "6-wheeler": 60} # Rates based on vehicle‬
‭type‬
‭return rates.get(self.vehicle_type, 0) # Default to 0 if type is invalid‬

‭def calculate_cost(self):‬
‭current_datetime = datetime.now()‬
‭duration = (current_datetime - self.parking_datetime).total_seconds() /‬
‭3600‬
‭return self.get_rate() * duration, duration‬

‭def __str__(self):‬
‭return (‬
‭f"ID: {self.vehicle_id}, Brand: {self.brand}, Model: {self.model}, Year:‬
‭{self.year}, "‬
‭f"Type: {self.vehicle_type}, Parking DateTime:‬
‭{self.parking_datetime}"‬
‭)‬

‭class VehicleManagementSystem:‬
‭def __init__(self, total_space=1000):‬
‭7‬

9
s‭ elf.vehicles = []‬
‭self.total_space = total_space‬
‭self.remaining_space = total_space‬

‭def add_vehicle(self, vehicle):‬


‭if self.remaining_space > 0:‬
‭self.vehicles.append(vehicle)‬
‭self.remaining_space -= 1‬
‭print("Vehicle added successfully!")‬
‭else:‬
‭print("No parking space available!")‬

‭def view_vehicles(self):‬
‭if not self.vehicles:‬
‭print("No vehicles available!")‬
‭return‬
‭for vehicle in self.vehicles:‬
‭print(vehicle)‬

‭def remove_vehicle(self, vehicle_id):‬


‭for vehicle in self.vehicles:‬
‭if vehicle.vehicle_id == vehicle_id:‬
‭cost, duration = vehicle.calculate_cost()‬
‭print(f"Billing for Vehicle ID: {vehicle_id}")‬
‭print(f"Total Duration: {duration:.2f} hours")‬
‭print(f"Total Cost: {cost:.2f} Rs")‬
‭self.vehicles.remove(vehicle)‬
‭self.remaining_space += 1‬
‭print("Vehicle removed successfully!")‬
‭return‬
‭print("Vehicle ID not found!")‬

‭def view_remaining_space(self):‬
‭print(f"Remaining parking spaces: {self.remaining_space}")‬

‭def main():‬
‭system = VehicleManagementSystem()‬

‭8‬

10
‭while True:‬
‭print("\nVehicle Management System")‬
‭print("1. Add Vehicle")‬
‭print("2. View Vehicles")‬
‭print("3. Remove Vehicle (Calculate Bill)")‬
‭print("4. View Remaining Space")‬
‭print("5. Exit")‬
‭choice = input("Enter your choice: ")‬

‭if choice == "1":‬


‭vehicle_id = input("Enter Vehicle number: ")‬
‭brand = input("Enter Brand: ")‬
‭model = input("Enter Model: ")‬
‭year = input(“Enter year:”)‬
‭vehicle_type = input("Enter Vehicle Type (bike/car/6-wheeler):‬
‭").lower()‬
‭if vehicle_type not in ["bike", "car", "6-wheeler"]:‬
‭print("Invalid vehicle type! Please choose 'bike', 'car', or '6-wheeler'.")‬
‭continue‬
‭vehicle = Vehicle(vehicle_id, brand, model, year, vehicle_type)‬
‭system.add_vehicle(vehicle)‬
‭elif choice == "2":‬
‭system.view_vehicles()‬
‭elif choice == "3":‬
‭vehicle_id = input("Enter Vehicle number to remove: ")‬
‭system.remove_vehicle(vehicle_id)‬
‭elif choice == "4":‬
‭system.view_remaining_space()‬
‭elif choice == "5":‬
‭print("Exiting the system. Goodbye!")‬
‭break‬
‭else:‬
‭print("Invalid choice! Please try again.")‬

‭if __name__ == "__main__":‬


‭main()‬

‭9‬

11
‭Output‬

‭ he‬ ‭program‬ ‭simulates‬ ‭a‬ ‭Vehicle‬ ‭Management‬ ‭System‬ ‭that‬


T
‭manages‬‭parking‬‭spaces,‬‭calculates‬‭billing,‬‭and‬‭tracks‬‭vehicle‬
‭details.‬ ‭Here's‬ ‭the‬ ‭expected‬ ‭output‬ ‭in‬ ‭words‬ ‭based‬ ‭on‬ ‭the‬
‭program flow:‬

‭1‬‭.Adding a Vehicle‬‭:‬
‭ When‬ ‭a‬ ‭vehicle‬ ‭is‬ ‭added,‬ ‭it‬ ‭automatically‬ ‭logs‬ ‭the‬
~
‭current‬ ‭date‬ ‭and‬ ‭time‬ ‭and‬ ‭updates‬ ‭the‬ ‭remaining‬ ‭parking‬
‭spaces.‬
‭~Example Output:‬
‭Vehicle added successfully!‬

‭2.‬‭Viewing Vehicles:‬
‭ Lists‬ ‭all‬ ‭the‬ ‭parked‬ ‭vehicles‬ ‭with‬ ‭their‬ ‭details‬ ‭such‬ ‭as‬
~
‭ID, brand, model, year, type, and parking date and time.‬
‭~Example Output:‬
I‭ D:‬ ‭V001,‬ ‭Brand:‬ ‭Honda,‬ ‭Model:‬ ‭Activa,‬ ‭Year:‬
‭2020, Type: bike, Parking DateTime: 2025-04-10 11:45:23‬

‭3.‬‭Removing a Vehicle and Calculating Bill:‬


‭ Removes‬ ‭a‬ ‭vehicle‬ ‭by‬ ‭its‬ ‭ID,‬ ‭calculates‬ ‭the‬ ‭total‬
~
‭duration‬ ‭it‬ ‭was‬ ‭parked,‬ ‭and‬ ‭provides‬ ‭the‬ ‭total‬ ‭cost‬ ‭based‬ ‭on‬
‭10‬

12
‭rates (, , and ).‬
‭~Example Output:‬
‭Billing for Vehicle ID: V001‬
‭Total Duration: 3.50 hours‬
‭Total Cost: 70.00 Rs‬
‭Vehicle removed successfully!‬

‭4.‬‭Viewing Remaining Parking Space:‬


‭ Displays‬ ‭the‬ ‭number‬ ‭of‬ ‭parking‬ ‭spaces‬ ‭left‬ ‭out‬ ‭of‬ ‭the‬
~
‭total allocated space.‬
‭~Example Output:‬
‭Remaining parking spaces: 998‬

‭5.‬‭Exit Message:‬
‭~Ends the program with a friendly exit message.‬
‭~Example Output:‬
‭Exiting the system. Goodbye!‬

‭11‬

13
‭OUTPUT IMAGE:‬
‭1.ADDING IMAGE‬

‭2‬‭.‬‭VIEW VEHICLE‬

‭12‬

14
‭3.VIEW REMAINING SPACE‬

‭4.REMOVE VEHICLE‬

‭13‬

15
‭5.EXIT‬

‭14‬

16
‭Future Enhancement‬
‭•‬ ‭Mobile App Integration:‬
‭ evelop‬‭a‬‭mobile‬‭app‬‭for‬‭users‬‭to‬‭reserve‬‭parking‬‭spots,‬
D
‭view availability, and pay bills remotely.‬
‭•‬ ‭Parking Slot Assignment‬‭:‬
‭ ynamically‬ ‭allocate‬ ‭specific‬ ‭slots‬ ‭to‬ ‭vehicles‬ ‭and‬
D
‭provide real-time tracking of slot occupancy.‬
‭•‬ ‭EV Charging Stations‬‭:‬
I‭ ntegrate‬ ‭electric‬ ‭vehicle‬ ‭(EV)‬ ‭charging‬ ‭options‬ ‭with‬
‭real-time charging status and pricing.‬
‭•‬ ‭Loyalty Programs:‬
I‭ mplement‬‭a‬‭system‬‭for‬‭frequent‬‭users‬‭to‬‭earn‬‭points‬‭and‬
‭redeem discounts.‬
‭•‬ ‭Advanced Revenue Analytics:‬
‭ rovide‬ ‭detailed‬ ‭dashboards‬‭with‬‭revenue‬‭patterns,‬‭peak‬
P
‭usage hours, and customer insights.‬

‭15‬

17
‭Conclusion‬
‭ he‬ ‭Vehicle‬ ‭Management‬ ‭System‬ ‭effectively‬ ‭addresses‬ ‭the‬
T
‭challenges‬ ‭faced‬ ‭in‬ ‭modern‬ ‭parking‬ ‭management‬ ‭by‬
‭automating‬ ‭processes,‬ ‭enhancing‬ ‭efficiency,‬ ‭and‬ ‭improving‬
‭user‬ ‭experience.‬ ‭By‬ ‭integrating‬ ‭dynamic‬ ‭billing,‬ ‭real-time‬
‭space‬ ‭tracking,‬ ‭and‬ ‭streamlined‬ ‭vehicle‬ ‭management,‬ ‭the‬
‭system minimizes manual intervention and errors.‬
‭Key achievements include:‬
1‭ .Automated‬ ‭Operations:‬ ‭Accurate‬ ‭billing‬ ‭based‬ ‭on‬ ‭parking‬
‭duration and vehicle type.‬
2‭ .Optimized‬‭Space‬‭Utilization:‬‭Effective‬‭allocation‬‭of‬‭parking‬
‭spaces to different vehicle categories.‬
3‭ .Enhanced‬ ‭Data‬ ‭Management:‬ ‭Reliable‬ ‭tracking‬ ‭of‬ ‭parked‬
‭vehicles and exportable records for analysis‬
4‭ .Scalability:‬ ‭Support‬‭for‬‭multiple‬‭parking‬‭lots‬‭and‬‭advanced‬
‭features like analytics and penalties.‬

‭References‬
‭Python Documentation (Turtle Graphics):‬‭https://docs.python.org/3/library/turtle.html‬

‭Python Random Library Documentation:‬

‭https://docs.python.org/3/library/random.html‬‭Python Official Website:‬

‭https://www.python.org/‬
‭16‬

18

You might also like