Note that this vehicle will not be parked and is assumed to go somewhere else. You will be required to demonstrate your program to the instructor in the CS lab on test data provided by the instructor one day prior to the demonstration. You will be graded on how well your program handles the test data. When a vehicle leaves the queue, it is assumed that the parking attendant will move all vehicles up to fill the freed space. Vehicles can enter the queue at one end and must leave at the other.
Vehicles can enter and leave the stack at only one end.
If a motorcycle is already parked in the parking lot, a newly arrived motorcycle can share that space only if it is at the entry point of the stack or at the entry point of the queue. A newly arrived motorcycle cannot jump over other vehicles to share a space with a motorcycle that is already parked. Likewise, it cannot share a space with a motorcycle that is parked at the exit end of the queue. If the parking lot is filled when a vehicle arrives, then it will never be parked in the parking lot. It should be ignored.