CHALLENGE ACTIVITY
2.7.2: Floating-point numbers (double)
497338.3044322.qx3zqy7
Jump to level 1
One gallon equals 128 fluid ounces. Declare double variables volumeOunces and volumeGallons. Then, read volumeOunces from input and convert volumeOunces into volumeGallons.
Ex: If the input is 2.00, then the output is 0.016.
#include <iomanip>
#include <cmath>
#include <iostream>
using namespace std;
int main() {
/* Your code goes here */
cout << fixed << setprecision(3) << volumeGallons << endl;
return 0;
}