Project Objective'sÂ
Implement a Parking Management System: The program simulates a parking lot for cars and scooters, managing parking space allocation by assigning row and column positions to vehicles. It keeps track of parking availability in a 2D array, differentiating parking spaces for cars and scooters.
Efficiently Handle Vehicle Data: Using structures, the code stores the details of each vehicle, including type (car or scooter), parking location (row and column), and vehicle number. Dynamic memory allocation (malloc) is utilized to store vehicle records efficiently.
Provide Real-time Parking Information: The system continuously updates and displays real-time information, such as the total number of vehicles, cars, and scooters parked, utilizing counters like vehcount, carcount, and scootercount.
Search and Allocate Parking Slots: The system uses the getfreerowcol function to search for available parking slots in the designated areas for cars and scooters. It ensures vehicles are parked in the correct section and handles full parking conditions with error messages when no slots are available.