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 realtime.
Requirements:
A Struct Definitions: You must use the following struct definitions. You are free to add more fields if you
anticipate.
typedef struct RegisteredVehiclefor one registered vehicle
char licenseplate; to be used for string license plate# of the vehicle
char ownername; to be used for storing owner name
RegisteredVehcle;
typedef struct Garagefor one garage
char garagename; to be used for garage name
int totalcapacity; total capacity of the garage
int currentcount; number of vehicles in the garage in a particular time
RegisteredVehicle parkedvehicles; list of parked vehicles in a particular time
Garage;
typedef struct Campus
Garage garages; list of garages in campus
int totalgarages; number of garages in the campus
RegisteredVehicle registeredvehicles; list of registered vehicles
int totalregisteredvehicles; total number of registered vehicles
Campus;
B Commands:
The parking system should support the following commands:
a PARK
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
