I would like to create a small parking system with 10 space.
Then the system may assign the 1st entered car to the nearest space.
I would like to implement the car park space using array.
And the distance is save into array.
e.g. A=2 means tat at array A its distance from entrance is 2
so when the car enter the car park, the system will search from the available array and assign the leaser distance's space to the driver.
Anyone have idea to guide me how to implement this ?