import javax.swing.*; public class ChangeMakerTester { //1)Input a change amount in real $ //2)Instantiate a ChangeMaker object for the change amount //3)Create a description of the composition of the change amount //4)Display the description public static void main(String[] args) { //Enter the Change Amount ((Real $) String prompt = "Enter a $ Change Amount"; String input = JOptionPane.showInputDialog(null, prompt); double change = Double.parseDouble( input ); //Create a ChangeMaker for the input change amount ChangeMaker changer = new ChangeMaker(change); //Construct a statement of the composition of the change String statement = changeDetails( changer ); //Display the summary of the composition of the change JOptionPane.showMessageDialog(null, statement); } //Compose and return a change-statement showing the detaila of // some $ change amount //@Parameter mac - A ChangeMaker object for the change amount private static String changeDetails(ChangeMaker mac) { //First, the details of the amount, dollars and cents String details = "Change $" + "\n" + "============" ; return details; } }