Need a program in java:
The cash register has the following bills: 1x 20eur, 2x 10eur, 3x 5 eur,1x 2eur, 1x 1eur. The program asks: „how large is the change:“ .If the change is too large, then: „There isnt enough change". If it isnt possible to give out an exact change (for example: 24 eur), then „Its not possible to give exact change". But if there is enough change (lets say 37 eur) then the program should say like this:
„The change is:
20 eur: 1x
10 eur: 1x
5 eur: 1x
2 eur: 1x