Created
August 29, 2016 22:35
-
-
Save weirdestnerd/5d63a8f87f980d46d3d82d06e962dc8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Calculates runtime for the elevator | |
public int runtime(int dstfl, int curflr) { | |
return ( (dstfl - curflr) * 30 ) / totflr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment