UNB/ CS/ David Bremner/ teaching/ java/ Coins1.java
public class Coins1
{  public static void main(String[] args)
   {  int pennies = 8; // the purse contains 8 pennies,
      int dimes = 4; // four dimes
      int quarters = 3; // and three quarters

      // compute total value of the coins 

      double total = pennies * 0.01 + dimes * 0.10
         + quarters * 0.25;
         
      // print result         

      System.out.print("Total value = ");
      System.out.println(total);
   }
}