Source code: JimCoins.java
import java.io.File;
import java.util.Scanner;

public class JimCoins {
  public static boolean trace = false; 
             
  public static void processFile (Scanner input)  {
    int coins = 0; 
    String coin_type = "";
    double total = 0.0;

    while (input.hasNextLine()) {
        String line = input.nextLine();
        // split the line into an array of words parsing and whitespace 
        String[] arr = line.split("\\s");  
        if (trace)
           for (int j=0; j 0) {
           if (b.trace)
	      System.out.println("arglen = " + args.length + " " + args[0]);
  	   sc = a.getScanner(args[0]);
           }
        else
           sc = a.getScanner("");	
	b.processFile(sc);    	  
	sc.close(); 		
        } // main
} // CountCoins