0% found this document useful (0 votes)
3 views25 pages

Affiliated to c

The document is a project report for a Vehicle Parking System created by Karan Gupta for the academic year 2024-2025. It includes an introduction to the system, hardware and software requirements, source code, proposed methodology, and outputs of the project. The system allows users to manage vehicle records, including adding, deleting, and searching for vehicles, as well as visualizing data through charts.

Uploaded by

karanmrpro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views25 pages

Affiliated to c

The document is a project report for a Vehicle Parking System created by Karan Gupta for the academic year 2024-2025. It includes an introduction to the system, hardware and software requirements, source code, proposed methodology, and outputs of the project. The system allows users to manage vehicle records, including adding, deleting, and searching for vehicles, as well as visualizing data through charts.

Uploaded by

karanmrpro
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 25

WWWWWWW

AFFILIATED TO C.B.S.E

Project File
Session :- 2024-25

INFORMATION PRACTICES (065)

Vehicle Parking System

Name : Karan Gupta


Submitted to:
Class : 12th –Science A Mr.
Bhupendra Sharma
Roll No : 28
CERTIFICA
TE
This is to certify that this project
report entitled Vehicle Parking
System is a bonafide record of the
project work done by Karan Gupta of
class 12th- Science A, Roll
number 28 In the academic year
2024-2025. The project has been
submitted in partial fulfillment of
CBSE for practical held at Kids
Corner Happy Sr. Sec. School,
Firozabad

External Examiner Principal IP


Teacher
Signature
Signature Signature
ACKNOWLEDGEM
ENT
First and foremost, I thank Lord Almighty for
the grace, strength and hope to make my
endeavor a success.

I would like to express my gratitude towards the


Principal of my Institution, ”Mrs Rupali
Bhatnagar”
,for making available all possible resources to
help in my endeavors. It gives me immense
pleasure to express my sincere gratitude
towards my superviso
Mr. “Bhupendra Sharma”, PGT
Information Practices, Kids Corner
Happy Sr. Sec. School for his invaluable
guidance. I consider myself extremely
fortunate to have had a chance to work under
her supervision.
I also express my gratitude to all the
respected faculty members of Kids Corner
Senior Secondary School, Firozabad, who
have helped me directly or indirectly.
I would also like to express my
indebtedness to blessings of my parents
and family
INDEX
Serial Topic Page No.
Number
1. INTRODUCTION 1
2. Hardware and Software 2
Requirements
3. Data Of CSV Files 3
4. Source Code 4-10
5. Proposed Methodology 11
and Implementation
6. OUTPUTS 12-17
7. Bibliography 18
INTRODUCTI
ON
The data stored in csv or database
file is used and analyzed using python
libraries and appropriate charts are
generated to visualize our data. This
project has been made for storing the
records of the vehicle currently parked
and All the past records of the vehicles
that were parked. This code Include Spot
No, Owner Name, Vehicle Name, Vehicle
Number, Vehicle Type, Cost, Entry Date,
Exit Date of parked vehicles. It contains
of addition,deletion and searching of
records
HARDWARE AND
SOFTWARE RE-
QUIREMENTS
Hardware :
 Processor :10th Generation Intel(R) Core(TM)
i3-1035G1
 Solid State Drive : 512GB
 Screen Resolution: 1920 × 1080
 RAM : 8 GB
 Others: Standard computer peripherals
like keyboard, mouse, etc
Software :
 Operating System: Windows 10
Programming
 Tool : Python 3.11
 CSV File Tool : Microsoft Excel
DATA OF CSV
FILES
1. Records.csv :

2. Current.csv :

3. Cost.csv :
SOURCE CODE
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
print('=' * 50)
print("\t\t Parking Lot")
print('=' * 50)
df = pd.read_csv("Current.csv",
index_col="Spot No")
df2 = pd.read_csv("Cost.csv",
index_col="Vehicle id")
df3 = pd.read_csv("Records.csv")
k=1
while k == 1:
print('Press 1 - Add a New Record')
print('Press 2 - Show Current records')
print('Press 3 - Search for a record')
print('Press 4 - See all records')
print('Press 5 - To search for a empty parking
spot')
print('Press 6 - To See Graph of Parking
Prices')
print('Press 7 - To Add Exit Date ')
print('Press 8 - To Add Vehicle Type')
print('Press 9 - To See Vehicle Price List')
print('Press 10 - To Delete record from
current records')
print('Press 11 - To Exit')
x = int(input("Enter Your Choice:"))
if x == 1:
Spot = int(input("Enter The Spot Number:
"))
if Spot in df.index:
print("Sorry This Spot Is Taken")
else:
Name = str(input("Enter The Owners
Name: "))
Vname = str(input("Enter The Vehicle
Name: "))
Vnumber = str(input("Enter The Vehicle
Number: "))
Vid = int(input("Enter The Vehicle id: "))
EntDate = str(input("Enter The Entry
Date: "))
df.loc[Spot] = [Name, Vname, Vnumber,
Vid,
df2.loc[Vid, 'Cost'],
EntDate,np.nan]
print("Record Added Successfully")
df.to_csv("Current.csv")
elif x == 2:
print(df)
elif x == 3:
print("Ways to search for Record:")
print('''\t\t 1. Spot Number
2. Owner Name
3. Vehicle Number
4. Entry Date''')

n = int(input("Enter the way you want to


search for the Record: "))

if n == 1:
Serial = int(input("Enter the Spot
Number: "))
if Serial in df.index:
print(df.loc[Serial])
print("\n")
else:
print("No Car is at the Spot")
elif n == 2:
owner = str(input("Enter the Owner
Name: "))
result = df[df['Owner Name'] == owner]
if not result.empty:
print(result)
else:
print("No records found for the given
Owner Name.")
elif n == 3:
vehicle_num = str(input("Enter the
Vehicle Number: "))
result = df[df['Vehicle Number'] ==
vehicle_num]
if not result.empty:
print(result)
else:
print("No records found for the given
Vehicle Number.")
elif n == 4:
entry_date = input("Enter the Entry
Date (DD-MM-YYYY): ")
result = df[df['Entry Date'] ==
entry_date]
if not result.empty:
print(result)
else:
print("No records found for the given
Entry Date.")
else:
print("Invalid option selected. Please
choose between 1 and 4.")
elif x == 4:
print('=' * 100)
print(df3)
print('=' * 100)
elif x == 5:
a = list(range(1, 13))
for i in range(1, 13):
if i in df.index:
a.remove(i)
else:
pass
print("The Following Spots are empty: ")
print(*a, sep=",")
print("\n")
elif x == 6:
plt.bar(df2["Vehicle Name"], df2["Cost"],
color=’b’, edgecolor='black', label='Cost',
width=0.5)
plt.legend()
plt.title("Vehicles and their costs")
plt.show()
elif x == 7:
Slot = int(input("Enter The Spot Number:
"))
if Slot in df.index:
ExtDate = str(input("Enter The Exit
Date: "))
df.loc[Slot, "Exit Date"] = ExtDate
record = df.loc[Slot].to_frame().T
record.reset_index(inplace=True)
record.rename(columns={"index": "Spot
No"}, inplace=True)
df3 = pd.concat([df3, record],
ignore_index=True)
df3.index = range(1, len(df3) + 1)
df3.to_csv("Records.csv", index=False)
df.drop(Slot, inplace=True)
df.to_csv("Current.csv")
print("Record for Spot", Slot, " has been
moved to Records.csv")
else:
print("No record found for the given
Spot Number.")
elif x == 8:
Vid = int(input("Enter The id of the
Vehicle: "))
if Vid in df2.index:
print("Already a Vehicle is registered at
that id")
else:
Vname = str(input("Enter The Vehicle
Name: "))
Cost = int(input("Enter The Cost: "))
df2.loc[Vid] = [Vname, Cost]
df2.to_csv("Cost.csv")
print(“Vehicle has been added”)
elif x == 9:
print('=' * 50)
print(df2)
print('=' * 50)
elif x == 10:
print("Ways to Delete for Record:")
print('''\t1. Spot Number
2. Owner Name
3. Vehicle Number
4. Entry Date''')
n = int(input("Enter the way you want to
Delete the Record: "))
if n == 1:
Serial = int(input("Enter the Spot
Number: "))
if Serial in df.index:
df.drop(Serial, inplace=True)
print("The Record has been deleted
successfully.")
df.to_csv("Current.csv", index=True)
print("\n")
else:
print("No car is at the specified
spot.")
elif n == 2:
owner = str(input("Enter the Owner
Name: "))
result = df[df['Owner Name'] == owner]
if not result.empty:
df.drop(result.index, inplace=True)
print("The Record has been deleted
successfully.")
df.to_csv("Current.csv", index=True)
else:
print("No records found for the given
Owner Name.")
elif n == 3:
vehicle_num = str(input("Enter the
Vehicle Number: "))
result = df[df['Vehicle Number'] ==
vehicle_num]
if not result.empty:
df.drop(result.index, inplace=True)
print("The Record has been deleted
successfully.")
df.to_csv("Current.csv", index=True)
else:
print("No records found for the given
Vehicle Number.")
elif n == 4:
entry_date = str(input("Enter the Entry
Date (DD-MM-YYYY): "))
result = df[df['Entry Date'] ==
entry_date]
if not result.empty:
df.drop(result.index, inplace=True)
print("The Record has been deleted
successfully.")
df.to_csv("Current.csv", index=True)
else:
print("No records found for the given
Entry Date.")
else:
print("Invalid option selected. Please
choose between 1 and 4.")
elif x == 11:
k=0
print('*' * 50)
print("Thanks For Visiting")
print('*' * 50)
PROPOSED
METHODOLOGY AND
IMPLEMENTATION
The Vehicle Parking System is designed to maintain
records and details of the vehicles being entered and
left. It allows the user to view all current records and
old records too and add vehicles exit date and it
automatically moves to old records. The Vehicle
Parking
System contains details of vehicles such as :-

1. Spot at which they are parked


2. Owners Name
3. Vehicle Brand or Name
4. Vehicle Number
5. Type of Vehicle
6. Cost of parking
7. Entry Date
8. Exit Date

Based on these data values the system provides with


the following functions required by the user :-
1. Adding New records
2. Deleting Records
3. Adding exit dates to currently parked vehicles
4. Graphical representation
5. Searching for records
OUTPUT
1. To Add A New Record :

If there is already a car at the spot :


2. To See All the details of the cars
currently parked :

3. To Search For A Record :


4. To search for empty spots :

5. To see bar graph of the cost of parking


for different vehicles :

6. To add exit date of a Vehicle :


7. To Add A New Type Of Vehicle To The

Vehicle List :

8. To see the costs, vehicle id and their


names :
9. To delete a record for a Vehicle currently
parked :

10. To Search For An Empty Parking Spot :


11. To See all the records of vehicles which
have left the Parking :

12. Exiting The Program :


BIBLIOGRAPH
Y
 Informatics Practices for Class 12
- by Sumit Arora (2024-25
Examination)
 https://www.w3schools.com/
 https://www.wikipedia.org/

You might also like