Implement an algorithm in Python that, given in input a Currency object and a float number r with at most two decimal points, returns:
◦ the number of different ways