      1  /**

      2     This program computes the volume (in liters) of a six-pack of soda cans.

      3  */

      4  public class Volume1

      5  {

      6     public static void main(String[] args)

      7     {

      8        int cansPerPack = 6;

      9        double canVolume = 0.355; // Liters in a 12-ounce can

     10

     11        System.out.print("A six-pack of 12-ounce cans contains ");

     12        System.out.print(cansPerPack * canVolume);

     13        System.out.println(" liters.");

     14     }

     15  }