Salary ======= Save all functions into the same file named ``salary.py``. #. Write the function :py:func:`discounting` that from a given amount and percentage (float), returns a new amount resulting from the application of this percentage discount to the given amount. See the following examples: .. literalinclude:: salary1.txt :language: python3 :lines: 3-8 .. note:: More tests are provided in the :download:`salary1.txt` file. #. A company pays its sales employees a bonus of EUR 5 per each EUR 100 of the sales amount sold by each employee. Write the function :py:func:`bonus` that takes a sales amount (float), and returns the corresponding number of bonus. The number of bonus obtained by a sales employee is always an integer value. See the following examples: .. literalinclude:: salary2.txt :language: python3 :lines: 3-8 .. note:: More tests are provided in the :download:`salary2.txt` file. #. To compute the salary of its sales employees, a company applies first a discount of a certain percentage that includes taxes to the gross salary and then adds a bonus of EUR 5 per each EUR 100 of the sales amount sold by each employee. Write the :py:func:`salary` function that from a given gross salary (without discounts) of a sales employee, a discount percentage and the sales amount sold by this employee, returns the corresponding final salary. This function **must call the two previous functions**. See the following examples: .. literalinclude:: salary3.txt :language: python3 :lines: 3-8 .. note:: More tests are provided in the :download:`salary3.txt` file. .. rubric:: Solutions A solution of these functions is provided in the :download:`salary.py` file.