Failed to understand the Cash Register Problem

Please i need the explanation to this problem. I am finding it difficult to understand. I would apppreciate any form of help.

I dont understand what to do here

what part have you understood?

the function would receive the content of the cash register, the money the client has to pay, and the money the client gives to the cash register user.
The function should then say how much change to give back and in which denomination

1 Like