Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count passengers in a bus with multiple doors #18

Open
jhergon opened this issue Oct 13, 2016 · 0 comments
Open

Count passengers in a bus with multiple doors #18

jhergon opened this issue Oct 13, 2016 · 0 comments

Comments

@jhergon
Copy link

jhergon commented Oct 13, 2016

When a bus has multiples doors, it is difficult to count the quantity of passengers hop in and hop off the bus.
Let's suppose we count the passengers get in and get out in one door. The passenger could enter in a door and exit in a different one. For this reason the counter could go negative.
For this reason, the counter could allow negative numbers meaning the previous capacity was higher and adjust this negative value by increasing previous values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant