// A program to compute the number of liters for 0.5, 1, ..., 5.5, 6.0 quarts
// Version 3:  table expanded to half values for quarts

#include <iostream.h>

int main (void)
{   const double conversion_factor = 1.056710;  /* declaration of constant */
    double quarts, liters;
    cout << " Table of quart and liter equivalents" << endl << endl; 
    cout << "Quarts        Liters" << endl;
    cout.setf(ios::fixed);   

    for (quarts = 0.5; quarts <= 6.0; quarts += 0.5)
      { liters  = quarts / conversion_factor ;
        cout.precision(1);
        cout.width(5) ; 
        cout << quarts ;
        cout.precision(4);
        cout.width(15);
        cout << liters << endl;
      }

    return 0;
}
