//Charlotte Davies-Kiernan CS1A Chapter 3 P.143 #1
//
/******************************************************************************
*
* Compute Miles Per Gallon
* ___________________________________________________________________________
* This program computes a car's gas mileage based on the number of gallons
* and the number of miles driven on a full tank.
*
* The formula that will be used:
* miles per gallon = miles / gallon
* ___________________________________________________________________________
* INPUT
* gallons // Amount of gallons the car can hold
* miles // Amount of miles the car can drive on full tank
* OUTPUT
* milesPerGallon // Amount of miles driven per gallon
****************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float gallons; //INPUT - amount of gallons the car can hold
float miles; //INPUT - amount of miles the car can drive on full tank
float milesPerGallon; //OUTPUT - amount of miles driven per gallon
//
//User input
cin >> gallons;
cin >> miles;
//
//Calculate Miles Per Gallon
milesPerGallon = miles / gallons;
//
//Display
cout << "The car gets " << milesPerGallon << " miles per gallon.";
return 0;
}