Question: Problem Description: Monster Campus Parking System Monster University is facing significant challenges with their parking system due to heavy demand and limited availability, particularly during

Problem Description: Monster Campus Parking System
Monster University is facing significant challenges with their parking system due to heavy demand and limited
availability, particularly during peak hours. To better understand the usage patterns of various parking garages
and ensure that only authorized vehicles can park, they need to develop a more effective monitoring system.
Recognizing your exceptional coding skills, they have sought your expertise to create this system
The campus features multiple parking garages, each with a defined capacity. The university also maintains a
record of registered vehicles along with their owner's details. Your task is to develop a system that efficiently
tracks vehicles entering and exiting the garages while monitoring the status of each garage in real-time.
Requirements:
A. Struct Definitions: You must use the following struct definitions. You are free to add more fields if you
anticipate.
typedef struct RegisteredVehicle{//for one registered vehicle
char* license_plate; //to be used for string license plate# of the vehicle
char* owner_name; //to be used for storing owner name
} RegisteredVehcle;
typedef struct Garage{//for one garage
char* garage_name; //to be used for garage name
int total_capacity; //total capacity of the garage
int current_count; // number of vehicles in the garage in a particular time
RegisteredVehicle** parked_vehicles; //list of parked vehicles in a particular time
} Garage;
typedef struct Campus{
Garage** garages; //list of garages in campus
int total_garages; //number of garages in the campus
RegisteredVehicle** registered_vehicles; //list of registered vehicles
int total_registered_vehicles; //total number of registered vehicles
} Campus;
B. Commands:
The parking system should support the following commands:
a. PARK Gx,
Problem Description: Monster Campus Parking

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!