//Ivy Whitney CSC 5 chp. 3, Q# 1
/************************************************************
*
*
*CALCULATE A CAR'S GAS MILEAGE
_____________________________________________________________
*
*
* This program display the number of miles that may be driven
* based on the amount of gas the user can hold in their car and
* the number of miles that can be driven on a full tank.
*
* ==================Variables===============================
*
* INPUTs
*
* gasCapacity = Max amount of Gas the users car can hold
* maxMiles = The number of miles that can be driven on a full tank
*
* OUTPUTs
*
* milesperGallon = The miles per gallon
* ==========================================================
* The MATH...
*
* milesperGallon = maxMiles / gasCapacity
**************************************************************/
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main() {
//variable time!
double gasCapacity;
double maxMiles;
double milesperGallon;
//User inputs
cout << "ENTER YOUR MAX FUEL CAPACITY BELOW.\n";
cin >> gasCapacity ;
cout << "ENTER THE AMOUNT OF MILES YOU CAN DRIVE WITH";
cout << "A FULL TANK OF GAS BELOW.\n";
cin >> maxMiles ;
milesperGallon = gasCapacity / maxMiles;
cout << "YOUR MPG IS " << fixed << setprecision(2) << milesperGallon << ".";
return 0;
}