mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 06:18:44 +00:00
Added unit for boat velocity
#fix #story[6]
This commit is contained in:
@@ -120,7 +120,7 @@ public class Race {
|
||||
for (int i = 0; i < numberOfBoats; i++) {
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user