Topic: Who prompts as to create the function in an ex-fur-tree, one of variables an array

It is necessary to create own function which produces result value of profit, start with five variables, one of variables an array. With an array a problem, values cannot be received. If it is possible an example throw off on mail (mtagir1968@mail.ru)