Welcome![Sign In][Sign Up]
Location:
Downloads Other resource
Title: ParkingLotmanagement Download
 Description: A problem description 1 topic content There is only one narrow passageway for n cars in the parking lot, and only one gate is available for cars. Car in the parking lot at the time of arrival of the vehicle order, from north to south in order to arrange (gate at the southern tip of the first to arrive the extreme north of the first car parked in the yard), if the car floor has stopped full n car, the car later have to wait outside the door of the pavement, once the car drive away, ranked first car can drive into the sidewalk; When a car in the parking lot to leave, after he pulled into the vehicle must exit the station to make way for the it, opened the car door, other vehicles into the yard, in according to the original order per car parked in the yard when it left the parking lot must be fees it stay for the length of time. Try to prepare a simulation program for the parking lot according to the above requirements. 2 basic requirements Each set of input data includes three items: auto "to" or "leave" information, registration number and arrival or departure time, for each set of input data after the operation of output data is: if the vehicle arrives, the output of cars in the parking lot or sidewalk parking place; If the car goes away; The time that the car stays in the parking lot and the expenses that should be paid (the stop time on the road is not charged, the parking fee per unit time is input from the keyboard).
 Downloaders recently: [More information of uploader chenli2016]
 To Search:
File list (Check if you may need any files):

CodeBus www.codebus.net