/* Driver.java -- driver for the program to count change. Given a * certain number of cents (1-99) it should be possible to find out' * how many of each type of coin to give. */ import java.io.*; public class Driver { public static void main(String [] args) throws IOException { // input amount of money BufferedReader kbd = new BufferedReader(new InputStreamReader(System.in)); System.out.print("How many cents change do you need? "); int amount = Integer.parseInt(kbd.readLine()); // create a "Change" object, telling it how many cents to start with. Change c = new Change(amount); // Output the coins required to achieve this amount of change. c.printCoins(); } }