PPT Slide
public class ChangeMakerByComposition
/* Uses compositional approach to make change. Returns the number of
quarters, dimes, nickels and pennies in an amount less than a dollar. Uses
the method factor_and_balance from class PartitionInteger*/
public static void main(String[] args)
{ int quarter = 25, dime = 10, nickel = 5, number_of_quarters,
number_of_dimes, number_of_nickels, number_of_pennies, amount;
int[] coin_and_balance = new int[2];