Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C++ program for a Car parking lot using a classes. You will fulfill the following requirements The Car Parking lot has 20 parking
Write a C++ program for a Car parking lot using a classes. You will fulfill the following requirements
- The Car Parking lot has 20 parking spaces (Use array of Car objects )
- The parking spaces are numbered from 1 to 20 (Parking lot capacity is 20)
- You will assign the parking space to a car when it enters the parking lot
- You will mark the space empty when the car vacate the parking space
- Your program should inform the Car driver if no space is available in the parking lot (Parking lot is full)
- Your program should be able to report at any time number of spaces that are occupied and number of vacant spaces
- At night your program should empty the Parking Lot (Assume any car parked after hours will be towed away)
Write a driver program to test the requirements
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started