"if you run the program you will notice that it ignores the amount of daily tolls and parkingfees. This should be quite simple, multiplying x times parkingfee etc. How would I set this up properly with the way my application is coded so that it will perform this action. Thank you. Forgot to mention, if I wanted to use a Dollar sign, what operator would be need used so that it would be displayed to the left of the output.
#include <iostream> //allows I/0
usingnamespace std; //uses name from std namespace
int main() //main begins program execution
{
double milesperday= 0; //first integer
double costpergallon = 0; //second integer
double avmilespergallon= 0; //etc.. average miles per gallon
double parkingfeedaily= 0; //....daily parking fee
double dailytolls = 0; //...daily tolls price daily
double costperday = 0; //..output the total cost
cout << "a) Total Miles driven per day."; //prompt for data
cin >> milesperday; // read integers from user
cout << "b) Cost per gallon of gasoline."; //prompt for data
cin >> costpergallon ; //read integers from user
cout << "c) Average Miles per gallon."; //prompt for data
cin >> avmilespergallon ; //read integer from user
cout << "d) Parking fees per day."; //prompt user for data
cin >> parkingfeedaily ; //read integer from user
cout << "e) Tolls per day."; //prompt for data
cin >> dailytolls ; //read integer from user
dailytolls =1.25;
parkingfeedaily= 1.26;
costperday= dailytolls+parkingfeedaily+(milesperday/avmilespergallon)*costpergallon;
cout << "Cost per day of driving to work="<<costperday<<endl;
return 0;
}