Added unit for boat velocity

#fix #story[6]
This commit is contained in:
Haoming Yin
2017-03-09 15:00:48 +13:00
parent debe2c0cca
commit abc5df7837
+1 -1
View File
@@ -120,7 +120,7 @@ public class Race {
for (int i = 0; i < numberOfBoats; i++) { for (int i = 0; i < numberOfBoats; i++) {
String velocityKnots = String.format("%1.2f", boats[i].getVelocity() * 1.943844492); String velocityKnots = String.format("%1.2f", boats[i].getVelocity() * 1.943844492);
System.out.println(boats[i].getTeamName() + " Velocity: " + velocityKnots); System.out.println(boats[i].getTeamName() + " Velocity: " + velocityKnots + " Knots/s");
} }
} }