I need java source code on the problem I've post, I am actually using a JFrame component for my cashdispenser.java and I don't know how build a source code on my problem.
The flow is just like this
Enter amount to widthdraw:_______________ Initial Balance:__________
On this button it should show on how many were taken from the atm:
For instance an atm have 1000 pcs. of 1000 pesos and 500 pcs of 500 pesos and 100pcs. of 100 pesos. So if I put an amount in Enter amount to Widthraw and click the CashDispenser Button that should show or prompt a message dialouge box on how many were taken from the amount of money stored there..
So example if I widthraw an amount of 6500 pesos.. CashDispenser should show how many were taken from the 1000pcs of 1000pesos and 500pcs. of 500 pesos and 100pcs. of 100 pesos..
I'm sorry I am not that good in english hope I communicated it well to you..
one more thing the maximum amount to be widthrawn is 10,000 pesos only