Hi I am doing a vending Machine application. Now I can insert denominations from 5 10 20 50 1pound and 2 pounds. Is there a way of filtering the most efficent coin combination to pay for the snack. e.g. I have a snack for 45 pence. I insert 2 pounds and 50 pence. I want the machine to be able to determine which is the most efficen coins to use.
Grub
4
Junior Poster in Training
Recommended Answers
Jump to PostStart taking out from the largest to the smallest coin.
All 3 Replies
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
Grub
4
Junior Poster in Training
masijade
1,351
Industrious Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.