Developer: hypernova-developer
License: MIT
This project is a Car Park Management System built in C++. It allows the management of vehicle entries, exits, and billing in a parking lot. The program handles both billing for parked cars and monitoring the vehicle count in real-time.
-
Secure Access:
- User authentication via a password system.
- Only authorized users can operate the system.
-
Billing System (Case 1):
- Calculates parking fees based on the time a vehicle stays in the lot:
- ≤ 1 hour → Free
- 1–2 hours → 5 USD
- 2–3 hours → 7 USD
- 3–4 hours → 10 USD
- 4–5 hours → 15 USD
-
5 hours → 20 USD
- Saves a record of the vehicle plate and price to
bill.txt.
- Calculates parking fees based on the time a vehicle stays in the lot:
-
Car Park Management (Case 2):
- Tracks vehicles entering and leaving the car park for each hour of the week (7 days × 24 hours).
- Calculates the current number of vehicles inside the parking lot using the formula:
current_count = previous_count + entered - exited - Monitors capacity and prints warnings:
- Full, almost full, half full, quarter full, or empty.
- Saves detailed hourly logs to
CarParkManagementSystem.txt.
-
User-Friendly Interface:
- Clear console outputs for real-time monitoring.
- Interactive prompts for entering vehicle information.
- Compile the C++ code using a compiler that supports Windows libraries (like
g++or Visual Studio). - Run the executable.
- You can use the executable file in the repository instead of first and second steps too (Not available in extra language versions of code).
- Enter the password when prompted.
- Choose the program mode:
1→ Billing system2→ Car park management3→ Quit
- English
- Türkçe
- Español
- Deutsch
- Français
bill.txt→ Stores billing information.CarParkManagementSystem.txt→ Stores vehicle count and parking lot status.
These prompts only work on Windows machines. It won't cause any harm but you won't get any result for running the program on another machine. Cross-Platform versions of my code will get place soon in this repository. A version that would be compatible in multipe languages in the same time will soon take place in this repository.
- Edit: Cross-Platform source code is out now! You can find it in the repository.
This project is licensed under the MIT License. See the LICENSE file for details.