# Car-Pool Savings Calculator In C

Question: Research several car-pooling websites. Create an application that calculates your daily driving cost, so that you can estimate how much money could be saved by car pooling, which also has other advantages such as reducing carbon emissions and reducing traffic congestion. The application should input the following information and display the user’s cost per day of driving to work:
1. Total miles driven per day.
2. Cost per gallon of gasoline.
3. Average miles per gallon.
4. Parking fees per day.
5. Tolls per day.
```/*
* Author: AGHATISE OSAZUWA
* Website: www.cscprogrammingtutorials.com
*
* Program to calculate car daily driving cost (Car-Pool Savings Calculator)
*
*/

#include <stdio.h>
int main ( ){
int milesPD, costPG, avgMPG, pFeesPD, tollsPD;
printf("Enter total miles driven per day: ");
scanf("%d", &milesPD);
printf("Enter cost per gallon of gasoline: ");
scanf("%d", &costPG);
printf("Enter average miles per gallon: ");
scanf("%d", &avgMPG);
printf("Enter parking fees per day: ");
scanf("%d", &pFeesPD);
printf("Enter tolls per day: ");
scanf("%d", &tollsPD);
system("pause");
return 0;
}
```
Click here to see other solutions to Deitel C How To Program exercises | Click here to see the same program in Java.