Respuesta :
Answer:
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;
}
Answer:
def miles_to_laps(user_miles):
return user_miles/0.25
if __name__ == '__main__':
miles = float(input(""))
lap = miles_to_laps(miles)
print("%.2f"%lap)
Explanation: