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;


Comments

  1. When a student sets out to buy their first graphing calculator, they are often surprised at what a complicated piece of equipment it truly is. These calculators are like small, handheld computers and buying them can be quite an ordeal. hours for work calculator

    ReplyDelete
  2. Forgetting to write down and check work. Any exam with a calculator should have a warning on it! It is essential to write down matrix calculator the calculations that you're doing so that you can get method marks.

    ReplyDelete

Post a Comment

Popular posts from this blog

How to Run Assembly Language Programming Code In Visual Studio 2019

How to Display Table of any Number in Assembly Language

How to Display Character in Assembly language