Java program to calculate notes denomination

We all know how to withdraw money from ATM machine. When my friend was checking his account balance, first time I came to know about ATM machine, I wondered by looking at that machine (It was the Andhra Bank ATM at Kodad). Of course I didn't even know what is a computer at that time.

Have you ever thought about how the ATM machine is dispensing money? It's just a simple calculation happens to decide how the notes have to be withdrawn. That calculation program just looks like below. Of course it is very simple stand alone program and you can extend based on your requirements.