UNB/ CS/ David Bremner/ teaching/ java/ Coins2.java
public class Coins2
{  public static void main(String[] args)
   {  int pennies = 8; // eight pennies in the purse
      double total = pennies * 0.01;
      
      int dimes = 4; // four dimes in the purse

      // add value of dimes

      total = total + dimes * 0.10; 
         
      int quarters = 3; // three quarters in the purse

      // add value of quarters

      total = total + quarters * 0.25; 
      
      System.out.print("Total value = ");
      System.out.println("total");
   }
}