i need help with atm

I need to writte a code: An ATM user wants to take some money, But the atm Offers money Only on the vaule of 10,20,50,100€. The code needs to give us the maximal number of money and the sum of it to be equal with the money user wants to take. If the user wants to get 2430€ from the ATM. He should take 24 banknotes with the value of 100 and three bank notes with the vaule of 10

27th Jan 2019, 3:23 PM
Qendresa L. Daka
Qendresa L. Daka - avatar
2 Answers
+ 4
Perfect example to use chain of responsibility design pattern
27th Jan 2019, 4:05 PM
Michal - avatar
+ 2
Why there are so many different people asking for this? https://www.sololearn.com/discuss/1670139/?ref=app
27th Jan 2019, 6:30 PM
Maneren - avatar