Added method to calculate distance travelled given velocity

- added getDistanceTravelled(velocity) to calculate how far a boat has travelled
- added startTime for calculating time elapse between start point and enquiry point

#story[6]
This commit is contained in:
Haoming Yin
2017-03-07 00:25:10 +13:00
parent da896cddfd
commit 6ce9674e64
2 changed files with 24 additions and 1 deletions
-1
View File
@@ -15,7 +15,6 @@ public class App
for (Map<String, Object> team : teams) {
boatNames.add((String) team.get("team-name"));
}
System.out.println(boatNames.toString());
// Shuffle team names
long seed = System.nanoTime();