Car Pooling Calculator
Car driving cost per day Calculator: #include<iostream> using namespace std; void main() { float milesPD,costPG,avgMPG,pfeesPD,tollsPD; float total_cost; cout<<"enter total miles driven per day:\n"; cin>>milesPD; cout<<"enter cost per gallon of gasoline:\n"; cin>>costPG; cout<<"enter average mile per gallon:\n"; cin>>avgMPG; cout<<"enter parking fees per day:\n"; cin>>pfeesPD; cout<<"enter tolls per day:\n"; cin>>tollsPD; total_cost=(milesPD/avgMPG)*costPG+pfeesPD+tollsPD; cout<<"your cost per day driving to work "<<total_cost<<"Rupees"<<endl; } Download: To download this code click on the given link below; Download