Here is a project program based on a programming exercise
given by a reputed multinational company for the requirement of senior analyst
The time given is approximately one hour.
I have taken two hours to devise to this level with random selection of lot size at
various stops (in javascript) but
one can stop with core objective of the programming exercise
san the formatting/headings.
A bus with capacity C to cover n stops.
devise a program in such a way that the persons waiting in queue
at a stop to go to destination of in between stops for a lot of selected group of
number of persons.
You may allow partial boarding/booking if the lot of number of persons
could not be accommodated.
coding be done in any programming language (preferably python/ javascript/ php)
START:
No of stops
Capacity of bus