• 9
  • Locked
Implement logic in the doStep method so that the runner's speed is taken into consideration. The Runner class's getSpeed() method displays how many steps per second a runner takes. The runner needs to actually take a specified number of steps per second. If Usain takes 4 steps per second, then he will take 8 steps in 2 seconds. If Carl takes 2 steps per second, then he will take 4 steps in 2 seconds.
You can't complete this task, because you're not signed in.
  • Popular
  • New
  • Old
You must be signed in to leave a comment
AndreyLevel 18 , St. Petersburt
22 April, 13:54
Firstly I used the value by mistake but then I understood that I should use the method.