I don't quite understand why you are multiplying the calculated speed by another factor before dispaying it. Isn't the speed value correct if you just divide the distance covered by the elapsed time and convert that to MPH?
In the future if you post code, please try to create an example that is as concise as possible that anyone could copy and run.
|