First off, let's explain the situation. If you take into consideration how you can calculate speed. DST.
CODE
D
S T
Speed == distance / time;So, let's use a
float to store the time, in seconds.
float time;Then, we use
scanf() to read in the minutes into time, like so:
scanf ("%f", &time);Next, we need to multiply time by 60, giving us the minutes in seconds.
time *= 60;Now, let's get the seconds:
float seconds;scanf ("%f", &seconds);And add that to time:
time += seconds;Now, we have a time, in seconds, after scanning minutes and seconds.
Let's get the distance, now:
float distance;scanf ("%f", &distance);So, going back to what I said at the beginning of my response:
float fps = distance / time; // fps = speedAnd that is our feet per second.
Now all you need to do is add the output, and convert the distance, and repeat the speed for mps and kps.
Hope this helps

Hint: if it was, click
here