You are on page 1of 10

Dalian polytechnic university

ACADEMIC YEAR :2023-24


Computer Science Project
PROGECT REPORT
ENTITLED AS
PARKING MANAGEMENT SYSTEM

USERNAME : ACHRAF
MAJOR : COMPUTER SCIENCE & TECHNO
SUBJECT : DATA STRUCTURES PRACTICES
ACADEMIC NO : 229J08
SUBMITTED BY : ACHRAF

Index

No 1 Introduction
No 2 Objectives of the project
No 3 Functions
NO 4 Source Code
No 5 Output with screenshot
No 6
Conclusion
Introduction: A Smart Parking Management System
Greetings and welcome to our cutting-edge Smart Parking Management System! In the hustle and bustle of
urban life, efficient management of parking spaces is a critical challenge. Our project aims to revolutionize the
traditional parking experience by introducing a sophisticated and user-friendly system that optimizes space
utilization, ensures smooth vehicle flow, and simplifies the payment process.
The Smart Parking Management System is designed to handle the intricacies of a long and narrow parking lot
with only one entry and exit gate. The system seamlessly manages the arrival, departure, and payment processes
for a fleet of vehicles, providing real-time insights into the parking lot's status. It incorporates features such as
dynamic parking allocation, service road management, and automated fee calculation to enhance the overall
parking experience.
Introduction: A Smart Parking Management System
Greetings and welcome to our cutting-edge Smart Parking Management System! In the hustle and bustle of
urban life, efficient management of parking spaces is a critical challenge. Our project aims to revolutionize the
traditional parking experience by introducing a sophisticated and user-friendly system that optimizes space
utilization, ensures smooth vehicle flow, and simplifies the payment process.
The Smart Parking Management System is designed to handle the intricacies of a long and narrow parking lot
with only one entry and exit gate. The system seamlessly manages the arrival, departure, and payment processes
for a fleet of vehicles, providing real-time insights into the parking lot's status. It incorporates features such as
dynamic parking allocation, service road management, and automated fee calculation to enhance the overall
parking experience.
1 -Make Parking easier
-Help people find parking spaces easily.
-Reduce the time looking for a parking spot
2-Avoid Traffic Jams
-ensure cars flow smoothly in and out of the parking lot.
-Prevent congestion and waiting.
3-Simple for Everyone:
-create a system that is easy for both users and parking lot managers.
-Keep the process of telling the system about cars simple
4-See What’s Happening:
-Show in real-time where cars are parked.
-let managers easily see what's going on in the parking lot.
5- Automatic Money Calculations:
-Automatically calculate how much money a car owes based on how long it stays.
- Include reservation costs and taxes in the calculations.
6- Ask Questions Easily:
- Allow people to ask how many cars are in the parking lot.
- Answer questions about how many cars haven't paid yet.
7- Reserve a Spot:
- Let people book a parking space ahead of time.
-charge a small fee for reservations to help manage parking.
8-Keep Thing Organized:
-Use a smart system to keep track of all the car information.

9-Use Files and Be Flexible:


-Allow information to be given through a file.
-Make the system easy to change or improve later.
10-Make everyone happy:
-Make sure the system is good for both people looking and those managing the parking.
-Keep things simple and enjoyable for everyone involved
-10 Make Some Money:
-Make the system bring in money through reservation fees, parking charges, and taxes.
-Make sure it can support itself financially.
Functions
Administration Section

Queues Section:

Status Display Section:

Entry Section:

Exit Section:
Account Section:

Source Code
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

// Constants
#define MAX_CARS 100
#define PARKING_RATE 1 // Replace with your desired parking rate per unit time
#define RESERVATION_COST 5 // Replace with your desired reservation cost
#define PARKING_TAX_PER_HOUR 5 // Replace with your desired parking tax per hour

// Data structures
typedef struct {
char plate[10];
int arrivalTime;
int departureTime;
int parkingLocation; // -1 for service road, >=0 for parking lot
int paid; // 1 if parking fees paid, 0 otherwise
} Car;

typedef struct {
Car cars[MAX_CARS];
int top; // Top of the parking lot
} ParkingLot;

typedef struct {
Car cars[MAX_CARS];
int front, rear; // Front and rear of the service road
} ServiceRoad;

// Function prototypes
void initializeParkingLot(ParkingLot *parkingLot);
void initializeServiceRoad(ServiceRoad *serviceRoad);
void printStatus(ParkingLot *parkingLot, ServiceRoad *serviceRoad);
void handleArrival(ParkingLot *parkingLot, ServiceRoad *serviceRoad, char plate[], int arrivalTime);
void handleDeparture(ParkingLot *parkingLot, ServiceRoad *serviceRoad, char plate[], int departureTime);
void calculateFees(Car *car);
int isEmpty(ParkingLot *parkingLot);
void getCarStatus(ParkingLot *parkingLot, ServiceRoad *serviceRoad, char plate[]);
void inquireNumCars(ParkingLot *parkingLot);
void inquireNumUnpaidCars(ParkingLot *parkingLot);

int main() {
// Initialize parking lot and service road
ParkingLot parkingLot;
ServiceRoad serviceRoad;
initializeParkingLot(&parkingLot);
initializeServiceRoad(&serviceRoad);

// Input handling
char action;
char plate[10];
int time;

printf("Enter the license plate of the car, sir: ");


scanf("%s", plate);

while (1) {
// Check if the car has just arrived

Output with screenshot

Conclusion
In summary, the Smart Parking Management System streamlines parking
with dynamic allocation, real-time updates, and automated fees.
Reservations, parking taxes, and simple inquiries enhance user experience.
Implemented in C, it efficiently manages data with arrays and linked lists.
The project ensures optimal space use and a positive experience for users
and managers. In a nutshell, it revolutionizes parking efficiency and user
satisfaction.

You might also like