title: Why do I have to enter in data twice?
body: <p>I'm writing this program that will let you enter in an amount for each quarters, dimes, nickels and pennies and return their amount in $.  After that, I want to be able to add up the dollar amounts they produce without having to enter in all of the coin amounts a second time.  Any ideas?  Thanks in advance.</p>
  
  <pre><code>import java.util.*;
  
  public class HalfDollar {
    public static final Scanner CONSOLE = new Scanner(System.in);
  
    public static void main(String[] args) {
      quarterDollarAmount( );
      dimeDollarAmount( );
      nickelDollarAmount( );
      pennyDollarAmount( );
      totalDollarAmount( );
    }
  
    public static double quarterDollarAmount( ) {
      System.out.print("Enter the number of quarters: ");
      int quarterDollar = CONSOLE.nextInt( );
      double amount = quarterDollar * 0.25;
      System.out.println(quarterDollar + " Quarter are $" + amount);
      return amount;
    }
  
    public static double dimeDollarAmount( ) {
      System.out.print("Enter the number of dimes: ");
      int dimeDollar = CONSOLE.nextInt( );
      double amount = dimeDollar * 0.10;
      System.out.println(dimeDollar + " Dimes are $" + amount);
      return amount;
    }
  
    public static double nickelDollarAmount( ) {
      System.out.print("Enter the number of nickels: ");
      int nickelDollar = CONSOLE.nextInt( );
      double amount = nickelDollar * 0.05;
      System.out.println(nickelDollar + " Nickels are $" + amount);
      return amount;
    }
  
    public static double pennyDollarAmount( ) {
      System.out.print("Enter the number of pennies: ");
      int pennyDollar = CONSOLE.nextInt( );
      double amount = pennyDollar * 0.01;
      System.out.println(pennyDollar + " Pennies are $" + amount);
      return amount;
    }
  
    public static double totalDollarAmount( ) {
      double quarter = quarterDollarAmount();
      double dime = dimeDollarAmount();
      double nickel = nickelDollarAmount();
      double penny = pennyDollarAmount();
      double total = quarter + dime + nickel + penny;
      System.out.println("Total amount is $" + total);
      return total;
    }
  }
  </code></pre>