HP Forums
Distance, Speed, Time - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Software Libraries (/forum-10.html)
+--- Forum: HP Prime Software Library (/forum-15.html)
+--- Thread: Distance, Speed, Time (/thread-9708.html)



Distance, Speed, Time - BERNARD MICHAUD - 12-16-2017 11:01 PM

Distance, Speed, Time Calculator.

Enter Speed and Distance in miles or kilometers as long as the units are the same.
For now when calculating Time for for various lengths of roadway at different speeds, you can jot down the times and use TimeCalc.hpprgm to accumulate the total time.
I will combine the two programs in the near future, for more flexibility.

REVISED AND IMPROVED June 2,2018


RE: Distance, Speed, Time - JDW - 08-16-2018 12:16 PM

Bernard,

I just tried out your program. Is it rounding strangely? For example:

Distance = 500E-3
Speed = 100E0
Then move the box selector down to H and tap OK to get:
H=0E0, M=0E0, S=20E0

But 18 seconds is the expected answer. Here's an online calculator to compare:

http://www.machinehead-software.co.uk/bike/speed_distance_time_calc.html

(Use the Time Calculator and choose kmh & Kilometers in the popups, type your numbers, then Calculate Time.)

I then tried this in your program on my Prime:

Distance = 1E0
Speed = 100E0
Then move the box selector down to H and tap OK to get:
H=0E0, M=0E0, S=30E0

But the expected answer is 36 seconds.