It looks like you're using an Ad Blocker.
Please white-list or disable AboveTopSecret.com in your ad-blocking tool.
Thank you.
Some features of ATS will be disabled while you continue to use an ad-blocker.
import java.math.MathContext;
import java.util.Scanner;
public class CoinsInAJar [
/**
* @param args
*/
public static void main(String[] args) [
System.out.println("Welcoe to this simple little application that will easily calculate the value of your coins you have."
+ "\nSimply follow through the prompts to get the total value of coins."
+ "\nJust a small tip to make things even easier. Sort your coins in different piles, pennies, nickles, dimes, and quarters, respectively.");
double pennies;
double nickel;
double dime;
double quarter;
System.out.println("Enter the amount of pennies you have ");
Scanner userPenny = new Scanner(System.in);
pennies = userPenny.nextInt();
pennies = pennies * .01;
System.out.println("Your total value of pennies you have " + pennies);
System.out.println();
System.out.println("Enter how many nickels you have: ");
Scanner userNickel = new Scanner(System.in);
nickel = userNickel.nextInt();
nickel = nickel * .05;
System.out.println("The total amount of nickels you have is " + nickel);
System.out.println("Please enter how many dimes you have ");
Scanner userDimes = new Scanner(System.in);
dime = (dime * .10);
System.out.println("Your total amount in dimes is " + dime);
]
]