UNB/ CS/ David Bremner/ teaching/ java/ Volume.java
public class Volume
{  public static void main(String[] args)
   {  final double BOTTLE_VOLUME = 2.0;
      final double CAN_VOLUME = 0.355;

      int bottles = 4; // we have four bottles
      int cans = 10; // and ten cans

      // compute total volume

      double total = bottles * BOTTLE_VOLUME
         + cans * CAN_VOLUME; 

      // print result

      System.out.print("The total volume is ");
      System.out.print(total);
      System.out.println(" liter");
   }
}