Results 1 to 2 of 2
- 10-02-2012, 05:55 PM #1
Member
- Join Date
- Oct 2012
- Posts
- 64
- Rep Power
- 0
Displaying note/coin combinations from change
I was just wondering how I could display note/coin combinations from a calculated amount?
My program so far reads in a price for a certain shopping item and then works out the change due from the amount of cash a user enters. So say if 354 is read in as the value if the item, and then the user enters 400 on the keyboard, it displays the change as 46.00. What I want know is for it to also display the note/coin combinations to get this amount, so for this example it would be:
10 pound notes - 4
5 pound notes - 1
2 pound coins - 0
1 pound coins - 1
50 pence coins - 0
20 pence coins - 0
10 pence coins - 0
5 pence coins - 0
2 pence coins - 0
1 pence coins - 0
How would I get the program to work this out?
Any help would be greatly appreciated, thank you.
- 10-02-2012, 06:06 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Displaying note/coin combinations from change
By Hazza in forum New To JavaReplies: 10Last Post: 10-03-2012, 01:09 AM -
arrange Combinations
By silvathins in forum New To JavaReplies: 0Last Post: 05-07-2012, 11:10 AM -
Combinations
By atomant in forum New To JavaReplies: 1Last Post: 02-22-2012, 07:41 AM -
how to capture keyboard strockes then change it then print into a note pad?
By Sank in forum New To JavaReplies: 7Last Post: 05-05-2011, 10:45 AM -
Coin Change
By Growler in forum New To JavaReplies: 7Last Post: 09-23-2010, 05:33 PM


LinkBack URL
About LinkBacks

Bookmarks