i need help with atm | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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

27th Jan 2019, 3:23 PM
Qendresa L. Daka
Qendresa L. Daka - avatar
2 Antworten
+ 4
Perfect example to use chain of responsibility design pattern
27th Jan 2019, 4:05 PM
Michal
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
Maneren - avatar