Results 1 to 3 of 3
  1. #1
    Tommeke is offline Member
    Join Date
    Jul 2011
    Posts
    5
    Rep Power
    0

    Default I have a problem with an "ATM" machine programming...

    we want to model an ATM. the ATM give note of 10, 20 and 50 euro.
    taking into account following logic...:
    the withdrawed amount is always composed of the maximum number of highest notes. en the maximum number notes of the next value.
    Example: the requested amount = 90
    this gives 1 note of 50 , 2 notes of 20
    (NOT 4 of 20 and 1 of 10)
    the returned amount is at least equal to the requested value. so the ATM rounds up.
    example if requested is 75 then you get 80 back (1x50, 1x20 and 1x10) 1 van 10), if U ask 96 u get 100 (2 x50 )
    each type of note should be a different class
    the returned amount should also be a sepperate class.

    Can someone help me with this, because, I'm getting desperate about how to solve this!

    thnx

    T

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is online now Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,691
    Rep Power
    8

    Default

    The same things I told you in your other post apply here as well.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

Similar Threads

  1. "Java Programming for the Absolute Beginner"
    By finalstrike777 in forum New To Java
    Replies: 2
    Last Post: 07-12-2011, 12:41 PM
  2. Replies: 7
    Last Post: 08-13-2010, 07:02 PM
  3. problem with argument list and precedence "(" and ")"
    By helpisontheway in forum Advanced Java
    Replies: 6
    Last Post: 12-24-2009, 07:50 AM
  4. Programming "MONEY CONVERTER" ???
    By Pascal Nouma in forum New To Java
    Replies: 1
    Last Post: 03-25-2009, 08:26 AM
  5. Replies: 1
    Last Post: 10-20-2008, 07:35 AM

Posting Permissions

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