I have code that creates financial batch files that distribute funds from an external party. They have recently levied a 40p (or cent if this helps clarify) charge per transfer. They send a transfer that is then broken down into several accounts, Obviously this works fine for any even number up to 40, however, any time the number of accounts is odd, then the split won't be to a round pence.
You need to do more planning, before any programming can take place.
Why would 6 accounts be able to evenly split 40p?
What would be a fair result?
Those aren't programming questions, they're planning questions.
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.