write code represent below algorithm

Job ID: 33363530

Budget: $30 – $50 USD

to implement these algorithms below in order to integrate them with the previous code for the cost model.
Related categories: Python Algorithm