Thank you! I managed to figure out how to do it. But I am stuck on one part
Code:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float km, time;
cout << "Input the runner speed [km/h]:" << endl;
cin >> km;
cout << "Input the time interval [s]:" << endl << endl;
cin >> time;
cout << "Run Distance = " << (km*time)/3.6 << " meters, "
<< " " << (km*time)/3.6 * 1.094 << " yards " << endl << endl;
cout << "Covered Laps = " << setprecision(1) << (time/km)/4 << " Laps, "
<< " " << (km*time)/3.6 << " meters " << endl << endl;
return 0;
}
------------------------------
The BOLD part of the program, it wouldnt allow me to fully calculate the " << " " << (km*time)/3.6 << " meters " <<" part, when i run the program. It would give me a random number and letters.
Any idea?