Answer:
Step-by-step explanation:
#include <iostream>
using namespace std;
//This is the function in the next line
double MilesToLaps(double userMiles) {
double Laps;
Laps = userMiles * 4;
return Laps
}
//This is the main fucnction
int main(){
double Miles, FinLap;
cout << "Enter the number of miles " << endl;
cin>>Miles;
FinLap = MilesToLaps(Miles);
cout << "The number of laps ran is: "<<setprecision(2)<<Finlap<<endI;
}