Answer:
#include <iostream>
using namespace std;
double DrivingCost(int drivenMiles,double milesPerGallon,double dollarsPerGallon)
{
double dollarsperMile=dollarsPerGallon/milesPerGallon;//calculating dollarsperMile.
return dollarsperMile*drivenMiles;//returning thr driving cost..
}
int main() {
double ans;
int miles;
cout<<"Enter miles"<<endl;
cin>>miles;
ans=DrivingCost(miles,20.0,3.1599);
cout<<ans<<endl;
return 0;
}
Output:-
Enter miles
10
1.57995
Enter miles
50
7.89975
Enter miles
100
15.7995
Explanation:
In the function first I have calculated the dollars per mile and after that I have returned the product of dollarspermile and driven miles.This will give the cost of the Driving.
1. go back to the feedback you submitted
2.Locate the order, and then click remove
3.select a reason for the removal and click to remove the feedback button.
(But why would you write a rude comment in the first place to begin with?)
A symbol or set of characters in a programming statement whose value can be changed
I’d say monthly. It probably wouldn’t kill you to do it every three months though.
Answer: try taking it to your media center for help or maybe try connecting to different wifi
Explanation: