Results 1 to 7 of 7
- 02-15-2011, 10:02 PM #1
Member
- Join Date
- Feb 2011
- Posts
- 5
- Rep Power
- 0
I need a java program for change denominations
Write a program that asks the user for a money amount. The amount should be specified in dollars and cents separated by a decimal point as you would normally write it. The program should then print out the change break down.
Use denominations of Twenties, Tens, ..., Ones, Quarters, Dimes, Nickels, Pennies. Consider making the program easily adaptable to add new denominations, like Fifties and Hundreds.
- 02-15-2011, 10:08 PM #2
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,068
- Blog Entries
- 3
- Rep Power
- 15
Once again, beer please.
This is not a forum for you to dump your homework on us. We are all willing to help you out, but you will be doing the majority of the work.
- 02-15-2011, 10:09 PM #3
Member
- Join Date
- Feb 2011
- Posts
- 5
- Rep Power
- 0
Yeah and I need help.
And it's not homework.
I am playing around with java.
- 02-15-2011, 10:14 PM #4
Member
- Join Date
- Feb 2011
- Posts
- 5
- Rep Power
- 0
also refer to what I said on my other post.
I am not even in a computer science class yet.
- 02-15-2011, 11:52 PM #5
- Join Date
- Jan 2011
- Location
- Richmond, Virginia
- Posts
- 3,068
- Blog Entries
- 3
- Rep Power
- 15
Neither am I, whats your point? I don't want to be overly rude, but you are not going to learn if we make the code for you, try it yourself and post back here with your code/errors/struggles/etc
- 02-16-2011, 12:24 AM #6
If you genuinely want help then in future ask a specific question. Then we can provide a specific answer.
If user enters a value of 10.45 then what you can do is convert that to an int with a value of 1045. Then its just a matter of dividing and modding by all the denominations.
-
Similar Threads
-
notify a DB change in java
By amanda in forum Advanced JavaReplies: 1Last Post: 12-28-2010, 01:46 PM -
How to A, B C, D, E,F change to 5,4,3,2,1,0 java
By theseven in forum New To JavaReplies: 1Last Post: 02-12-2010, 02:48 PM -
[Help] Change to give back program
By Duranx in forum New To JavaReplies: 5Last Post: 02-06-2010, 04:52 AM -
Change the color in my program
By carl in forum New To JavaReplies: 5Last Post: 04-03-2009, 01:20 PM -
Giving Change: A Rudimentary Program (Questions)
By carlodelmundo in forum New To JavaReplies: 8Last Post: 08-14-2008, 12:33 AM
Bookmarks