First off, the statement makes no sense. What are 'manets'? What sort of trust calculations are used for them? Why do you need such calculations? And most of all, what have you done so far on the problem yourself?
After a bit of searching, I am assuming you are referring to MANETs, 'Mobile Ad-Hoc NETworks'. All well and good, but the term is hardly well-known; a bit of clarification could have been useful there, or at least a full sentence would be nice. It would also be useful if you could explain what sort of 'trust calculation' you have in mind. But that isn't the real problem.
You see, DaniWeb is here to assist programmers working on improving their skills. As a matter of policy, we do not and will not provide source code free of charge without some demonstration of effort on the part of the original poster. To quote the DaniWeb community rules:
Do provide evidence of having done some work yourself if posting questions from school or work assignments
In oher words: Show Us The Code. Let us know what you have done so far, and tell us what you need help with. We are always willing to help you solve a problem, but this does not mean we will solve it for you.