/*
     Program: making Change
     Author: Jenny Orr
     Date: Sept 2001

     Description:
     In this program the user enters an amount of 
     change required. The program outputs the number of 
     dollar bills and coins that add up to the amount 
     the user entered. 
*/

import javabook2.*;

class Change 
{ 
     public static void main(String args[])
     { 

          MainWindow mainWindow = new MainWindow("Making Change");
          InputBox inBox = new InputBox(mainWindow);
          OutputBox outBox = new OutputBox(mainWindow);
          MessageBox messageBox = new MessageBox(mainWindow);
          outBox.show();

          float amount;
          messageBox.show("This program helps you make $$ change.");
          amount = inBox.getFloat("Enter the amount of change required (e.g. 14.67)"); 
          outBox.printLine("You have entered the amount $" + amount); 
     } 
}