0
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
2 Respostas
+ 4
Perfect example to use chain of responsibility design pattern
+ 2
Why there are so many different people asking for this?
https://www.sololearn.com/discuss/1670139/?ref=app