This question is closed. Reopen it to edit or answer.
Help with basic problem
1 view (last 30 days)
Andrew Reibold on 27 Oct 2014
Edited: Andrew Reibold on 27 Oct 2014
steps_required = ceil(((B-.2)-A)/C)
Explanation: Assuming you want to take the minimum amount of steps, the distance you MUST travel is the difference between B-A, with a grace of .2
Divided that distance by your step length, and you get the number of steps (round UP).
I'll let you do the critical thinking for the second part. This sounds like a homework problem.