import java.util.Scanner;
// import java.util.*;

public class PurseTest {
  public static void main(String[] args) {
    // Construct a Scanner object
    // to read from the keyboard
    Scanner in = new Scanner(System.in);
    
    /*
    // Print the prompt
    System.out.print("Enter an integer: ");
    // Read the value from the keyboard
    int quantity = in.nextInt();
    System.out.println("You entered " + quantity);
    
    // Print the prompt
    System.out.print("Enter a double: ");
    // Read the value from the keyboard
    double x = in.nextDouble();
    System.out.println("You entered " + x);
    
    // Print the prompt
    System.out.print("Enter a word: ");
    // Read the value from the keyboard
    String s = in.next();
    System.out.println("You entered " + s);
    */
    
    Purse purse1 = new Purse();
    
    // Print the prompt
    System.out.print("Enter number of nickels: ");
    // Read the value from the keyboard
    int quantity = in.nextInt();
    purse1.addNickels(quantity);
    System.out.println("Value = " + 
                       purse1.calculateTotal());

    // Print the prompt
    System.out.print("Enter number of dimes: ");
    // Read the value from the keyboard
    quantity = in.nextInt();
    purse1.addDimes(quantity);
    System.out.println("Value = " + 
                       purse1.calculateTotal());

    // Print the prompt
    System.out.print("Enter number of quarters: ");
    // Read the value from the keyboard
    quantity = in.nextInt();
    purse1.addQuarters(quantity);
    System.out.println("Value = " + 
                       purse1.calculateTotal());
    
    System.out.println("purse1 = " + purse1);

  }
}