Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: Pseudocode

  1. #1
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Pseudocode



    HELP WITH THE FOLLOWING SCENARIO WOULD BE MUCH APPRECIATED...

    "produce a routine to calculate the minimum number of coins and notes that would be returned to a purchaser based on the ammount they tendered"


    PLEASE can some one help!!!!

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Sounds like a class assignment. As a rule, we never do people's class work for them though we will assist them if they have questions about the code they have worked up but can't get it to work properly.

    Of course you haven't provided enough information yet to even answer you since you haven't mentioned the kind of currency which means we don't have a clue about which demoninations would be available. After all, this is an international forum and there are a lot of different currencies used around the world.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    would be using pound sterling

    £

  • #4
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    What language (probably C++) and is this a class assignment?

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Find a book about alogorithams, as it covers different apporaches to your porblem and others. It will explain the method for calculating change given.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished


  •  

    Posting Permissions

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