E
E
Eugene2014-02-17 14:48:23
Algorithms
Eugene, 2014-02-17 14:48:23

How to create an algorithm of work?

There is a list of clients, each client has an income, and there is also a general "minimum".
There is also a list of services that can be provided to the client, depending on his income.
For example:
No payment: 0%:1.5
Partial payment 10%: 10%:2.0
Partial payment 20%: 20%:2.5
Partial payment 30%: 30%:3.0
Full payment: 100%:???

The service is assigned once a month to each client depending on his income, if his income is less than 150% of the "minimum", then the "No payment" service is assigned to him, if from 150% to 200%, then "Partial payment 10%", etc. .d.,
those. you can use coefficients 1.5, 2.0, 2.5... and depending on the client's income / minimum, get the current coefficient, compare it with the table of services and assign the client one or another category...
But how to write down the coefficient for the last service? Simply, if more than 300% of the minimum, then the "Full payment" service goes.
You can, of course, put any number there, but I want to do it right.
ps: I hope I've made my point a little clearer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-02-17
Protko @Fesor

It would seem, where does the database?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question