Question: C++ Practice 3: MPH Chapter 4, Prob. 13 You would like to know how fast you can run in Miles Per Hour(MPH). Your treadmill will
Practice 3: MPH Chapter 4, Prob. 13 You would like to know how fast you can run in Miles Per Hour(MPH). Your treadmill will tell you your speed in terms of a pace (Minutes and Seconds per mile, e.g. a "5:30 mile") or in terms of kilometers per hour (KPH) Practice 3-1: Overloaded Functions Write an overloaded function called "convert ToMPH". The first definition should take two integers that represent the pace in Minutes and Seconds per mile and a parameter to compute the speed in MPH as a double. secspermile = paceMin * 60 + paceSec; mph (1/secspermile) * 3600; The second definition should take one double that represents the speed in KPH and a parameter to compute the speed in MPH as a double. (1 mile 1.61 kilometers) mph kph /1.61
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
