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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!