anonymous
  • anonymous
Can anyone help me with Java programming?
OpenStudy Feedback
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
What kind?
anonymous
  • anonymous
let me post the code i have so far
anonymous
  • anonymous
import java.util.Scanner; //Need Scanner class public class Money { public static void main(String[] args) { double amount; //To hold the monetary amount int newAmount; //To hold the total amount of Dollars double amount_Of_Coins; //To hold the total amount of coins int bill20, bill10, bill5, bill1; //To hold the units of bills of the monetary amount int coin25, coin10, coin5,coin1; //To hold the units of coins of the monetary amount Scanner keyboard = new Scanner(System.in); //Ask the user for the monetary amount System.out.println("Enter a monetary amount between 0 - 999.99: "); amount = keyboard.nextDouble(); newAmount = (int)amount;

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
i'm asked to show amounts for each smaller amount of the monetary unit. basically show amounts for 20,10,5,1 dollar bills and quarter,dime,nickel,and penny coins. i want to come up with a mathematical operation which will give me the correct monetary units for any money amount i can input
anonymous
  • anonymous
Sorry, I'm not really good at math but you should post your question on the mathematics section of OpenStudy and you might get a better answer.
anonymous
  • anonymous
its ok the math part is the tricky part i just need to get it right because i have been getting wrong values
Callisto
  • Callisto
Please post your question in the Computer Science group. Thank you! Link to the Computer Science group: http://openstudy.com/study#/groups/Computer%20Science

Looking for something else?

Not the answer you are looking for? Search for more explanations.