Results 1 to 2 of 2
  1. #1
    Hazza is offline Member
    Join Date
    Oct 2012
    Posts
    64
    Rep Power
    0

    Default 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.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,755
    Rep Power
    19

    Default Re: Displaying note/coin combinations from change

    Locking double post.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Displaying note/coin combinations from change
    By Hazza in forum New To Java
    Replies: 10
    Last Post: 10-03-2012, 01:09 AM
  2. arrange Combinations
    By silvathins in forum New To Java
    Replies: 0
    Last Post: 05-07-2012, 11:10 AM
  3. Combinations
    By atomant in forum New To Java
    Replies: 1
    Last Post: 02-22-2012, 07:41 AM
  4. Replies: 7
    Last Post: 05-05-2011, 10:45 AM
  5. Coin Change
    By Growler in forum New To Java
    Replies: 7
    Last Post: 09-23-2010, 05:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •